Johann Schopplich Johann Schopplich

Locked Pages

Password-protect a page and its subpages behind a login form

Manual

Download

… and extract the folder to site/plugins/locked-pages

Composer

Git Submodule

sections:
  access:
    type: fields
    fields:
      protection: fields/locked-pages

Features

🔒 Password Toggle in the Blueprint
Add fields/locked-pages to a page blueprint, and editors switch protection on and set the password per page.
🌳 Subpages Locked Too
Locking a page locks its whole subtree and its content representations, such as .json or .xml; one unlock covers every child and translation.
🔑 New Password, New Login
Access is tied to the current password, so changing it locks out everyone who unlocked the page before.
🎨 Your Own Login Form
Drop locked-pages-login.php into site/templates to replace the bundled form; slug, title, and error messages are options.
🚪 Logout Hook
Trigger locked-pages.logout from a route to clear a visitor's access.
Version
3.3.0
License
MIT
Stars
42
Kirby support
More