Advertisement

how to make menu item accessible only to registered users Topic is solved

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: 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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 157
Joined: Tue Feb 28, 2006 3:23 pm

how to make menu item accessible only to registered users

Post by davidascher » Tue Jan 14, 2025 10:05 pm

I feel like I must be missing something very basic. I want to allow only registered users to be able to access a specific hidden menu item. These users will have a URL for this menu item. I have attempted to make a hidden page accessible only to registered users and the result is:
First they see a message that to they have to log in to the site - which is what I expected.
After they log in, there is a delay of a few seconds and then they see a page with these messages:
This page isn’t working
peacecoalition.org redirected you too many times.
Try deleting your cookies.
ERR_TOO_MANY_REDIRECTS

It was my impression that many many many Joomla! sites restrict all or some of their front end to access only by registered users, so this kind of thing must work if done properly - and I must have done it improperly.

What am I doing wrong and what is the correct way to do this?

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

Re: how to make menu item accessible only to registered users

Post by Per Yngve Berg » Tue Jan 14, 2025 10:40 pm

Have you set the Menu Item to Access Level Registered?

davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 157
Joined: Tue Feb 28, 2006 3:23 pm

Re: how to make menu item accessible only to registered users

Post by davidascher » Wed Jan 15, 2025 1:25 am

Yes. That is what I meant when I wrote "I have attempted to make a hidden page accessible only to registered users". I have attached a screenshot showing this setting. Is there something else I'm supposed to do?
Screenshot_20250114-201343~2.png
You do not have the required permissions to view the files attached to this post.

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10486
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: how to make menu item accessible only to registered users

Post by AMurray » Wed Jan 15, 2025 9:34 am

you would also need to set the item being linked to to registered i.e. an article. (?).
Regards - A Murray
Global Support Moderator

davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 157
Joined: Tue Feb 28, 2006 3:23 pm

Re: how to make menu item accessible only to registered users

Post by davidascher » Wed Jan 15, 2025 2:13 pm

I just tried
Make the article accessible only to registered users
Make the menu item accessible only to registered users
In both cases I selected "registered"
I get the same result as before.
The article loads a custom module so I thought, perhaps, I need to also make that registered users accessible. I did that, in addition to the menu and article being registered users accessible, and that resulted in that same error page appearing no matter what page I attempted to access.

To clarify - the menu item is registered users accessible;
The menu item only links to an article that is also registered user accessible
The article only loads the module which is also registered user accessible.

I have also tried assigning the module to the menu item so it isn't loaded by the article - and eliminated the article from the equation. I am still seeing that same error page when I attempt to access ANY page on the site.

I am still, obviously, doing something wrong. What could it be?

thanks

davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 157
Joined: Tue Feb 28, 2006 3:23 pm

Re: how to make menu item accessible only to registered users

Post by davidascher » Wed Jan 15, 2025 4:34 pm

I have made the menu item, article, and module all public again and the menu item does what it is supposed to do.
Protecting a menu item seems like a very basic feature of Joomla! used by lots and lots of clubs, associations, churches, community groups, etc. I have never had the need to use this feature of Joomla! before and I presume that I have overlooked some detail of how a protected menu item needs to be set up. Is there a document online someplace that explains how to do this (for dummies like me - not for people who have done it a hundred times before)? So far I have not found such a document and I am out of hunches for what I might be not doing that I should be doing.

gws
Joomla! Champion
Joomla! Champion
Posts: 6568
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: how to make menu item accessible only to registered users

Post by gws » Wed Jan 15, 2025 5:07 pm

Not much help to you but I do exactly what you have done and it works for me.

davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 157
Joined: Tue Feb 28, 2006 3:23 pm

Re: how to make menu item accessible only to registered users

Post by davidascher » Wed Jan 15, 2025 7:59 pm

I found the source of the problem. I use the Admin Tools extension and it was configured to deny login to a Super User from the front end. It is unfortunate that the login appears to have succeeded and that there is no error message other "Something went wrong" - presumably because the article is only accessible to a "registered" user. Since the log in is somehow negated by Admin Tools, the article cannot be accessed.

I turned that feature off in Admin Tools so I could test what I wanted to test and then could log in to the front end and see the page I was trying to access. Of course, I will turn it back on, to keep the site as secure as it was before.

Thank you to people who made suggestions. Even though they didn't solve my problem, they did give me a better sense of what "should have" worked and got me to focus on looking at other possibilities.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44889
Joined: Sat Apr 05, 2008 9:58 pm

Re: how to make menu item accessible only to registered users

Post by Webdongle » Mon Jan 20, 2025 6:37 pm

Log in the front end as a registered user not as Super Admin. By default SA does not see Registered
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 157
Joined: Tue Feb 28, 2006 3:23 pm

Re: how to make menu item accessible only to registered users

Post by davidascher » Mon Jan 20, 2025 9:23 pm

Webdongle wrote: Mon Jan 20, 2025 6:37 pm Log in the front end as a registered user not as Super Admin. By default SA does not see Registered
Thanks for this suggestion. I have created a new "Register"-ed user that is used only for the purpose of accessing this page. All seems to be working okay now - although it seems to be more complex than I would have expected.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44889
Joined: Sat Apr 05, 2008 9:58 pm

Re: how to make menu item accessible only to registered users

Post by Webdongle » Tue Jan 21, 2025 12:27 am

In Users >>> Access Level ... 'Level name' (column) .. Click registered. You will see a list of which user groups can see menu items, Articles etc. that are set Registered.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Advertisement

Post Reply

Return to “Administration Joomla! 5.x”