Joomla - conditional menu item?

starhu
starhu used Ask the Experts™
on
Hello,
Let's say I have a Menu item: "Reseller prices"

- If somebody clicks on it who is not registered it will take him to the article "you are not registered..."
- But if somebody is registered the same Menu item will take him to the article "Prices"

Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Panagiotis Sweb developer - designer

Commented:
one solution is to use a plugin to determine the user state and according to this to show what you want

Author

Commented:
What kind of plugin should I use? Is there a ready to download plugin for that?
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Author

Commented:
This Multilingual registration approval looks great for registration approving but I still don't know how to set that the same menu item will show another article for registered and non-registered (I am quite a beginner in Joomla, sorry).
Panagiotis Sweb developer - designer

Commented:
plugins are mainly for articles so you crate an article and it would be something like the followin

{plugin reg} text for registers {/plugin}
{plugin gr} text for others  {/plugin}

Author

Commented:
Is suppose this {plugin reg}  won't work for me now - I need to download a plugin to enable this feature?
Panagiotis Sweb developer - designer

Commented:
of course its just a test, download a plugin and follow the instructions

Author

Commented:
The only one I found was inline ACL Content Plugin, but it gave error after installation. :-(
Jesse MatlockUX Engineer

Commented:
You can also create a menu item that links to an Article.. and make it accessible to everyone. In that article you can link to your other content, which is only viewable by registered users.. add wording on that page to let people know that it is only for registered users (eg. registered users click here, if you're not ... then ... )..

IF someone who is not registered clicks that link, they will see an error saying they don't have permission to view that page.. you can also, as an added step, customize that error message to further educate users on what steps to take, etc. This is all without adding any more plugins, etc that must load before your site is usable.. ;)

Author

Commented:
The problem is that the customer want the menu item to be invisible (not to be there) for public users. :-(
Jesse MatlockUX Engineer

Commented:
In your orig. question you said you wanted a menu item called "Reseller Prices" and that if someone clicked on it, it would take them to an article saying they are not registered.. The menu would have to be visible for that to happen.. :)


Let's say I have a Menu item: "Reseller prices"

- If somebody clicks on it who is not registered it will take him to the article "you are not registered..."
- But if somebody is registered the same Menu item will take him to the article "Prices"

Jesse MatlockUX Engineer

Commented:
Also, which Joomla version are you using?
UX Engineer
Commented:
If all you want is to hide them menu item.. then standard Joomla access levels applied to that menu item will work:

Go into your menu item and under Access Level on the main portion of the page, select 'Registered'.. this will hide the menu item for any user that is NOT registered... :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial