Typemill   ›   Author Guide   ›   Restrict Pages

Restrict Pages

If hiding a page from the navigation is not enough, you can also restrict individual pages or the entire website to authenticated users, certain user roles, or specific usernames.

Activate Access Management

For page restrictions, you first have to activate the access management in the system settings.

Screenshot of the access management in Typemill

You have several options:

  • Website restriction: Restrict the entire website. Visitors without authentication will be redirected to the login screen. This is especially useful if you want to set up and create your website live and lift the restriction on the day of launch.
  • Page restriction: Restrict access to individual pages. If this feature is activated, you will see the fieldset for roles and rights in the meta tab of each page.
  • Content break: By default, only the title will be visible in the frontend for a restricted page. If you want to hide the content instead, you can activate this checkbox and use a horizontal line.
  • Restriction notice: If you hide the content for restricted pages with the content break, you can customize the notice in the information box after the content break using markdown.

Restrict Pages

After activating the access management, you will find new fieldsets for roles and rights in the meta tab of each page.

Screenshot page restrictions

You have two options:

  • Select a minimum user role that has access to the page content in the frontend. Check the chapter about user management and user roles for details.
  • Add a list of usernames separated by commas if you only want certain users to have access to the page.

Common Scenarios

  • You have a website with training material for different courses, and you only want course participants to have access. You can either create a user for this course and let all participants use this user, or you can create individual users and add them as a comma-separated list.
  • You have an internal company website (like a wiki), and you only want certain roles to have access to specific information. You can either use a predefined role or write a plugin to create company-specific roles.