There are certain pages only a logged-in user should see. For example, this is true for the "my account" and "my user profile" pages. You can easily hide such pages from visitors using Toolset.
To hide a page from visitors, you need to use the Post Groups feature of the Toolset Access plugin.
You can group pages that need to share the same front-end access permissions. In this example, you can create a group called “Logged-in users only”.
To add pages to Post Groups, our site’s built-in “Pages” must be under Toolset Access control.
- Navigate to Toolset → Access Control and ensure you are on the first tab, Post Types.
- Click Pages and check the Managed by Access option.
- Make sure all checkboxes in the Read column are selected.
- Click the Save button.
All pages of your site will now be available for visitors by default. Later, we will restrict access to certain pages by using Post Groups.
The pages on your site are now managed by Toolset Access.
Next, you need to create a post group. For example, you can name it “Logged-in users only”.
- Go to Toolset → Access Control.
- Switch to the Post Groups tab.
- Click Add Post Group button to add your first group.
- In the pop-up window that opens fill out the group name.
- Use the search field to find the pages you want to hide from visitors and add them to the list.
After creating the post group, a table appears, with permissions that different user types have for this post group.
You have to do two final things:
- In the Read column, uncheck the option for the Guest users.
- Click the pen icon that appears. In the pop-up dialog, select what visitors will see instead when visiting pages in this post group.
- Allow users to manage their items
- Create users and assign them the roles you created
- Grant Privileges to Content Managers
- Setting up Custom Roles for Members
- Creating a “My Account” Page
- Controlling Access to Front-End Forms
- How to Reset Access Settings
- Access Control for Fields
- Access Control for Standard and Custom Content Types