Joomla!

Joomla! (2)

 

Allowing Guest-Only Access to Menu Items and Modules

 

Version 1.6 introduces the ability to create a View Access Level that is only for guests of the site (meaning a user who is not logged in). The example below shows how you can set up this new feature.

  1. Create a new user group called Guest. Make it a child of the Public group as shown below.
    Screenshot acl tutorial 20110112-01.png
  2. Create a new access level called Guest and grant only the Guest group access to this level, as shown below.
    Screenshot acl tutorial 20110112-02.png
  3. Edit the Public access level and add the Guest group to it, as shown below.
    Screenshot acl tutorial 20110112-03.png
  4. Navigate to User Manager→Options→Component and change the Guest User Group from the default value of "Public" to "Guest", as shown below.
Screenshot acl tutorial 20110112-04.png

Now, if we assign a menu item, module, or other object to the Guest access level, only non-logged in users will have access. For example, if we create a new menu item with access level of Guest, as shown below,

Screenshot acl tutorial 20110112-05.png

this menu item will only be visible to non-logged-in visitors to the site. Login/logout in frontend (for changing data in session) to see the change.