Public, Guest, and Registered Access Levels in Joomla!

Public, Guest, and Registered Access Levels in Joomla!

Understanding how to use the Public, Guest, and Registered access levels in Joomla! 3 sites with a frontend user area gives you much more control over your content and menus. For instance, if you have a login menu item, you really don’t need it once you are logged in, vice versus you don’t need a logout menu item if you aren’t logged in. Or, maybe you are asking people to sign up as a member in a module, you don’t need that same module showing after they have signed in.

Let’s take a look at how to use Guest and Public access levels to do just these type actions.

Public is used when you want your content to show to both logged in and not logged in users, but Guest is only visible when the user is NOT logged in.

First, out of the box Joomla! 3 is set to have Guest and Public setup, but before you try these steps, best to make sure your site is still setup properly for them to work.

  1. Click Users > Access Levels
  2. Verify you have Public and Guest access levels
    Verify you have Public and Guest access levels
  3. Click Users > Manage
  4. Click Options in the upper right
    Click Options in the upper right
  5. Verify that in the Global Configuration options your New User Group is Registered and your Guest User Group is Guest
    Verify that in the Global Configuration options your New User Group is Registered and your Guest User Group is Guest

Please note, that these can be set to different ACLs depending upon your site setup. In this case, if you are following the steps in this tutorial you’ll need to adjust your registered and guest to match your specific setup for it to work properly.

First let’s setup a menu item that will only be seen when the visitor is not logged in to the site.

  1. Go to the menu you wish to add your new item on
  2. Click New to create the menu item
    Click New to create the menu item
  3. Select the menu type to be a user login form
    Select the menu type to be a user login form
  4. Then change the access level to Guest
    Then change the access level to Guest

Next, let’s also setup a module that will only be seen when the visitor is not logged in to the site.

  1. Click Extensions > Modules
  2. Select New to create a new Module
  3. Select Custom HTML for the type (this could be any type of module, we are simply picking this for our example)
  4. After putting some content in and selecting position, change the access level to guest
    After putting some content in and selecting position, change the access level to guest

Now go to the frontend of the site and take a look, you should see both the menu item and the module.

View Frontend not logged in

Next we need to make a user that is Registered level if you don’t have one already to test with.

  1. Click Users > Manage >Add New User
    Create new user
  2. Setup a new user as normal, making sure they belong to the Registered group
    Registered group
  3. Save and Close the user
  4. Go to the frontend of the website and login, either using the Login menu item you made, or a login module if you have one on your site
    Login

Once you are logged into the frontend of the site, you verify that the menu and module that are set to Guest access level are no longer visible.

Logged in to frontend

Now, in our example we do have a login module that has a logout, but that might not be the case on your site. So let’s add a Logout menu item that will show in the same place that the Login menu item did, so it’s easy for the user to find.

  1. Go back to the same menu you put the Login menu item on and click to make a new menu item
  2. Select the menu type User > Logout
  3. Select Registered as the Access Level
    Select Registered as the Access Level
  4. Go back to the frontend of your site, make sure you are still logged in, or log in. Then you will see the Logout menu item.
    Login to frontend again

Learning how to use the Public, Guest, and Registered access levels give you a lot of power on who sees what content on your site. This knowledge should also help you as you get more complex with more levels past the Registered level for logged in users.

Interested in learning more about Joomla? Check out our many courses about Joomla and Joomla-related topics.

Author

  • Robbie Adair

    Robbie started her career in corporate training until starting her own custom training and media company almost seventeen years ago. In 2010, she began doing classroom training for OSTraining while running Media A-Team. She is often presenting about various tech topics such as Joomla, Fabrik, Web Development, Social Media, and Augmented Reality. She loves seeing that "ah-ha" moment in peoples eyes in her sessions and workshops. She lives in Houston, Texas, but enjoys all the travel for client work and speaking gigs.

    View all posts
0 0 votes
Article Rating
Subscribe
Notify of
guest

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
K.E.Klode
K.E.Klode
4 years ago

Fine explanation of Guest
/K.E.Klode

jeak kaile
jeak kaile
2 years ago

Best tutorial information

4
0
Would love your thoughts, please comment.x
()
x