Purpose:
SimplyPWPage protects page content with a simple password, without requiring user accounts or groups to be created in WBCE. The module operates as a page module and uses a session to control whether a page is "unlocked." The actual hiding of the content is handled by the template:
Template Integration:
To protect a page with SimplyPWPage, an additional page_content() block is inserted into the template, e.g., block 42 (which has to be defined in the info.php upfront):

=> See README_DE.txt in the module directory or the ZIP file.
For clarification and better understanding, a version of the "Just the Facts" template, in which the above-mentioned modification has been made, is also attached.
Important:
If SimplyPWPage is not installed or not used on the page, $simplypwpage_unlocked remains undefined → $is_unlocked remains true → Block 1 is displayed normally (full compatibility).
If a SimplyPWPage section is used in block 42 and password protection is configured there, view.php sets $simplypwpage_unlocked[$page_id] to:
- false: as long as no valid password has been entered
- true: after successful password entry
If a SimplyPWPage section exists, but neither a valid local nor a valid global password combination is configured, the module does not output anything in the frontend, and $simplypwpage_unlocked[$page_id] remains set to true → the page behaves as if it were unprotected.
Backend Usage
1. Create a new section on the desired page and select "SimplyPWPage" as the module.
2. Assign block 42 (or the block specified by the template for SimplyPWPage) to this section in the page layout/backend.
3. In the Modify view of the section:
Checkbox:
Local combination:
Buttons:
Note:
Global Combination
Frontend Behavior
While the page is not yet unlocked:
After successful password entry:
Display: "Logged in as XY" (XY = local or global name)
Security
Zweck:
SimplyPWPage schützt Inhalte einer Seite über ein einfaches Passwort, ohne dass in WBCE Benutzerkonten oder Gruppen angelegt werden müssen. Das Modul arbeitet als Page-Modul und steuert über eine Session, ob eine Seite „freigeschaltet“ ist. Das eigentliche Verstecken der Inhalte erfolgt über das Template:
Template-Integration:
Um eine Seite mit SimplyPWPage zu schützen, wird im Template ein zusätzlicher
page_content()-Block eingefügt, z.B. Block 42 (der zuvor in der info.php des Templates definiert werden muss):
=> Siehe README_DE.txt im Modulverzeichnis bzw. Zip
Zur Verdeutlichung und zum besseren Verständnis hängt hier auch eine Version des Templates "Just the Facts" an, in dem die o.g. Anpassung vorgenommen wurde.
Wichtig:
Wenn SimplyPWPage nicht installiert oder auf der Seite nicht verwendet wird, bleibt $simplypwpage_unlocked undefiniert → $is_unlocked bleibt true → Block 1 wird ganz normal angezeigt (volle Kompatibilität).
Wird eine SimplyPWPage-Section in Block 42 verwendet und ist dort ein Passwortschutz konfiguriert, setzt view.php $simplypwpage_unlocked[$page_id] auf:
- false: solange noch kein gültiges Passwort eingegeben wurde
- true : nach erfolgreicher Passworteingabe
Ist zwar eine SimplyPWPage-Section vorhanden, aber weder eine gültige lokale noch eine gültige globale Kombination konfiguriert, gibt das Modul im Frontend keinerlei Ausgabe aus und $simplypwpage_unlocked[$page_id] bleibt/steht auf true → die Seite verhält sich wie ungeschützt.
Benutzung im Backend
1. Auf der gewünschten Seite eine neue Section anlegen und als Modul „SimplyPWPage“ auswählen.
2. Dieser Section im Seiten-Layout/Backend den Block 42 zuweisen (oder den Block, den das Template für SimplyPWPage vorsieht).
3. In der Modify-Ansicht der Section:
Checkbox :
Lokale Kombination:
Buttons:
Hinweis:
Globale Kombination
Im unteren Bereich der Modify-Ansicht kann eine globale Kombination gepflegt werden:
Verhalten im Frontend
Solange die Seite noch nicht freigeschaltet ist:
Nach erfolgreicher Passworteingabe:
Wird der Schutz für diese Seite im Backend deaktiviert oder ist die gewählte Kombination (lokal oder global) nicht vollständig konfiguriert (kein Passwort, global nicht aktiviert etc.), gibt das Modul keinerlei Frontend-Ausgabe aus und die Seite bleibt ungeschützt.
Sicherheit