Restricting access to an Article
From Joomla! Documentation
How to Restrict Access to an Article
A key part of a Content Management System (CMS), is its ability to do just that - manage content. Joomla! provides an easy way for you to deliver your content to who you want to, when you want to.
This Tutorial looks specifically at restricting access to articles, either completely or for specific types of users.
Utilising it's powerful Access Control List (ACL), Joomla! provides you with an easy way to control who can see your articles by restricting access from within each article by changing the Access Level.
Note: By default an article will be set as Public - accessible by everyone.
Consider why you want to restrict access to the article:
- Is it an incomplete article? If so you could set the article to Unpublished.
- Is it an article that is being drafted for review by others? You can set the article so it is restricted to users that have the necessary access level.
Note: Joomla! 4 has introduced a new feature, Workflows allowing you to define specific stages for article creation through to publication.
Changing the Access Level of the Article
If you are changing the access level of an existing article:
- Log in to the Administrator Home Dashboard. More on this here: Logging in or out of the Administrator Dashboard.
- From the Home Dashboard Site Panel click on Articles or from the Sidebar Menu navigate to Content then Articles to open the Articles List.
- Find the article you want to restrict access to and click it's title to open it.
Under most circumstances you would normally set access levels on an article when you create it. Remember that the default access level of an article is Public.
The Access levels available are:
Public: Can be viewed by everyone - logged in users and non logged in users.
Guest: This access level restricts access to logged in users. It is more common to use this on websites that want to differentiate content that some logged in users can see but others can't, typically this might be a website where subscriptions provide additional content. Think of it as way to show content in one section of a site with relevant content to gain access to more sections of a site.
Registered: This level restricts access to anyone that is not a logged in user. An article set to registered will require a front end login before the article can be viewed.
Special: This level restricts access to only those that are logged into the backend of the website.
Super Users: Setting this level means only a Super User can access the article.
Once you have the set the relevant access level Save&Close via the top toolbar.
- Instead of on the article itself, you can set the access level on the menu item for the article.