Saturday, January 14, 2012

How do you hide something from logged in users?

Starting in Joomla! 1.6 you can hide modules, menu items, content and other things from logged in users by using the Guest feature.

To make this work you have to go to the user manager and create a new user group, which we could call Guest (although it could be anything). Then create an viewing access level and also call that Guest (or something else if you would rather).

Then go to the user manager options and set the Guest Group to Guest (or the name you chose).

Then finally, assign those modules, menu items or content items which you want to only be visible to visitors who are not logged in to the Guest access level.

Now only users who are not logged in will be able to see those things.

No comments:

Post a Comment