Menu Item Access Levels Topic is solved

Moderators: mandville, PhilD, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
John666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sat Mar 07, 2009 5:27 pm

Menu Item Access Levels

Post by John666 » Sun Dec 02, 2018 2:23 pm

Joomla 3.9.1 - PHP 7.2

I want to have two main menu items that change over for public and registered users - ie a user who is not logged in sees only Menu 1 and a logged-in user sees only Menu 2. I thought it was easy and so set up Menu 1 to have "registered" access only, and Menu 2 to have Guest" access only. Then, in Users/User Option, I set the Guest User Group to "Group" rather than the default "Public". For registered users this works. However, both menus disappear when a user is not logged in.

Any advice would be appreciated.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11542
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: Menu Item Access Levels

Post by toivo » Sun Dec 02, 2018 3:04 pm

When the Guest User Group in Users - Options is 'Guest' and the viewing access level of the corresponding menu module is also 'Guest', this configuration should work all right, as long as the viewing access level 'Guest' remains assigned to the user group 'Guest'.
Toivo Talikka, Global Moderator

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26207
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Menu Item Access Levels

Post by Per Yngve Berg » Sun Dec 02, 2018 3:07 pm

Set the Guest User Group to "Guest". The Guest group should be a child of public and a sibling to Registered.

https://docs.joomla.org/How_do_you_hide ... n_users%3F

The Guest user group should be there from scratch in Joomla 3.x. If you have upgraded, it may be missing.

John666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sat Mar 07, 2009 5:27 pm

Re: Menu Item Access Levels

Post by John666 » Sun Dec 02, 2018 3:31 pm

Thanks to both for the replies.

1 - My standard Joomla 3.9.1 configuration has the Guest user group as a child of Public but the parent of Registered. Does that mean I have to create a new "Guestxxx" user group to make this work?

2 - I don't understand "the corresponding menu module is also 'Guest' ". I have the menu item set to Guest.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26207
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Menu Item Access Levels

Post by Per Yngve Berg » Sun Dec 02, 2018 4:36 pm

Move Registered, so it's a child of Public.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26207
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Menu Item Access Levels

Post by Per Yngve Berg » Sun Dec 02, 2018 4:37 pm

Mod. Note: Relocated the topic to the ACL forum.

John666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sat Mar 07, 2009 5:27 pm

Re: Menu Item Access Levels

Post by John666 » Sun Dec 02, 2018 6:42 pm

Thanks!

I will try that and post the result in due course.

Thanks for the advice.

John666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sat Mar 07, 2009 5:27 pm

Re: Menu Item Access Levels

Post by John666 » Sun Dec 02, 2018 7:29 pm

OK, I give up! How do I move the Registered access level?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26207
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Menu Item Access Levels

Post by Per Yngve Berg » Sun Dec 02, 2018 7:35 pm

Open the Group and set the Parent.

John666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sat Mar 07, 2009 5:27 pm

Re: Menu Item Access Levels

Post by John666 » Sun Dec 02, 2018 8:07 pm

OK, I have done that - but still no luck!

Please have a look at http://79.170.40.166/jadance.co.uk/inde ... hop-guest1, and you will see that when selecting any product subcategory the system demands that the user should log in. Why? The Shop menu in use is a Guest level menu and all the product within the subcategories are "Available to all shopper groups".
The default group for non-logged in users is set to Guest.

I have spent all day on this and still I cannot make it work.

John666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sat Mar 07, 2009 5:27 pm

Re: Menu Item Access Levels

Post by John666 » Mon Dec 03, 2018 8:48 am

The characteristics of the problem are now:

Menu 1 (Registered level) works as expected;
Menu 2 (Guest level) is not displayed in the front end for non-logged-in users, and remains displayed for regitered users.

I have the Default Guest User Group set to "Guest".

John666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sat Mar 07, 2009 5:27 pm

Re: Menu Item Access Levels

Post by John666 » Mon Dec 03, 2018 8:59 am

OK, I Have solved the mystery! There were no access levels assigned to the Guest group.

Thanks to all who were kind enough to contribute. It made a real difference!


Post Reply

Return to “Access Control List (ACL) in Joomla! 3.x”