The marketing CMS where agents draft and people publish
Menu

Make a page members-only

This guide covers limiting a page or a file to people who sign in to your site's public account area, such as members, alumni or a board: turning on accounts, inviting people, sorting them into groups, and choosing who can see each page.

Before you start: a manager or admin account (site.settings) for the account settings, and permission to publish the page (Who can see this needs Publish on it). Accounts email people links, so set up the mail relay first (Site settings → Mail).

Steps

  1. Turn on accounts. Site settings → Accounts, tick Turn on accounts and Save. The site now serves log in, password reset and the account page under /account. These are visitors' accounts, separate from the admin: an account made there can never open the admin.
  2. Decide who can register. Who can register: Closed (only people you invite, the default), By invitation, With approval (anyone asks, you approve each in Members) or Open. Allowed email domains limits registration to addresses such as example.edu.
  3. Invite people. Under Invitations, type an Email (and an optional Message) and choose Invite. The link works once, for 14 days, and creates an account that is already confirmed. Joins these groups puts the new account in groups at once.
  4. Make groups if you need them. Under Groups, type a New group name ("Board") and choose Create group. In Members, Change under Groups picks a member's groups. Groups by email domain puts everyone at a domain in a group automatically.
  5. Limit the page. Open the page in the editor. In the Who can see this card in the rail, choose Signed-in members or Members of chosen groups (and tick the groups), then Save visibility. It applies at once, whether the page is published or not.
  6. Limit a file too. In Content → Media, open the file and set Who can download it the same way. It moves to a private address; its old public address stops working for everyone else.

Check the result

  • In a private browser window, open the page: you get the site's Members only page with Log in, which comes back to the page after signing in.
  • Signed in as a member outside the chosen groups, you get Not available instead.
  • The page is gone from listings, menus, site search, the sitemap, feeds and llms.txt for visitors; staff signed in to the admin always see everything.

Notes

  • Show Log in in the header puts Log in on every page, with an optional Header button such as Join.
  • A section can make everything under its path members-only (Site settings → Sections), and a content type can start its new entries as members-only.
  • The site's cache never keeps a members-only page, and a signed-in member's pages are made for them alone.

Going further

Spillway 0.1.24

Was this page helpful?