2

Click here to load reader

How Do You Hide Something From Logged in Users in Joomla

Embed Size (px)

Citation preview

Page 1: How Do You Hide Something From Logged in Users in Joomla

How do you hide something from logged in users?From Joomla! Documentation

(http://www.addthis.com/bookmark.php?v=300&winname=addthis&pub=ra-5378f70766e02197&source=tbx-300&lng=en-

US&s=google_plusone_share&url=http%3A%2F%2Fdocs.joomla.org%2FHow_do_you_hide_something_from_logged_in_users%253F&title=How%20do%20you%20hide%20something%20from%20logged%20in%20users%3F%20-

%20Joomla!%20Documentation&ate=AT-ra-5378f70766e02197/-/-/537f6bf4184c9afa/2&frommenu=1&uid=537f6bf4838e90be&ct=1&pre=https%3A%2F%2Fwww.google.com%2F&tt=0&captcha_provider=nucaptcha)

(http://www.addthis.com/bookmark.php?v=300&winname=addthis&pub=ra-5378f70766e02197&source=tbx-300&lng=en-

US&s=linkedin&url=http%3A%2F%2Fdocs.joomla.org%2FHow_do_you_hide_something_from_logged_in_users%253F&title=How%20do%20you%20hide%20something%20from%20logged%20in%20users%3F%20-

%20Joomla!%20Documentation&ate=AT-ra-5378f70766e02197/-/-/537f6bf4184c9afa/3&frommenu=1&uid=537f6bf453d66493&ct=1&pre=https%3A%2F%2Fwww.google.com%2F&tt=0&captcha_provider=nucaptcha)

0

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.

1. Create a new user group called Guest. Make it a child of the Public group as shown below.

(/File: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.

(/File:Screenshot_acl_tutorial_20110112-02.png)

3. Navigate to User Manager→Options→Component and change the Guest User Group from the default value of "Public" to "Guest", as shown

below.

ShareShareShare

Share

ShareShareMore

Page 2: How Do You Hide Something From Logged in Users in Joomla

(/File: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,

(/File:Screenshot_acl_tutorial_20110112-05.png)

this menu item will only be visible to non-logged-in visitors to the site.

If required other user groups like Author can be granted access in the Guest access level, this would allow Authors to view articles in the front end for

editing.

N.B. Login/logout in front end (for changing data in session) to see the change.

Categories (/Special:Categories): Tips and tricks (/Category:Tips_and_tricks) Joomla! 1.6 (/Category:Joomla!_1.6)