Restricting access to site content: Professional subscription plan or higher
Drupal Gardens provides fine-grained access control to your site’s content through the Taxonomy Access Control module. With this feature, you can define access control rules describing which users (by role) can view, edit, or delete content. Then you can apply these access control rules to any content you want, including basic pages, blog entries, and forum topics.
For example, you may want to allow all site visitors to discuss topics on current events, but allow only users with the Editor role to discuss topics related to improvements on your website. Using Taxonomy Access Control, you can restrict forum topics so that certain terms grant access only to the relevant user roles, preventing visitors from viewing topics about website improvements.
Optionally, you can allow some users to see a teaser of the content, but then redirect them to another web page when they try to view the full version of content in order to upsell them or provide information about how they can get access to your premium content.
In addition, you can add small images called role indicators to enhance content teasers, taxonomy term listings, and user pictures that indicate what roles apply to them. To display role indicators with content, you have to configure your content types and views to display them.
To restrict access to the content on your website:
- Prepare your website.
- Configure your site's roles to restrict content.
- Assign restrictions to content.
- Allow views to "tease" restricted content.
Optionally, you can also create and use role indicators to indicate both restricted content and higher-tier users.
- Create role indicators.
- Display role indicators for content.
Preparing your website
To use taxonomy to restrict access to protected content, enable the Taxonomy Access Control module.
- In the admin menu, select Modules.
- Enable the Taxonomy Access Control module.
- Click Save configuration.
Select an existing role on your website that will have access to protected content, or create an additional role. Later you will associate the role with access permissions for the content that you want to protect. To learn more, see User roles and permissions.