Solved

Joomla - conditional menu item?

Posted on 2011-09-04
13
467 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:starhu
  • 5
  • 4
  • 4
13 Comments
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 36481069
one solution is to use a plugin to determine the user state and according to this to show what you want
0
 

Author Comment

by:starhu
ID: 36481253
What kind of plugin should I use? Is there a ready to download plugin for that?
0
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 36481258
0
 

Author Comment

by:starhu
ID: 36485379
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).
0
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 36485411
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}
0
 

Author Comment

by:starhu
ID: 36485511
Is suppose this {plugin reg}  won't work for me now - I need to download a plugin to enable this feature?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Expert Comment

by:Panagiotis S
ID: 36485522
of course its just a test, download a plugin and follow the instructions
0
 

Author Comment

by:starhu
ID: 36487910
The only one I found was inline ACL Content Plugin, but it gave error after installation. :-(
0
 
LVL 8

Expert Comment

by:Jesse Matlock
ID: 36594266
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.. ;)
0
 

Author Comment

by:starhu
ID: 36718652
The problem is that the customer want the menu item to be invisible (not to be there) for public users. :-(
0
 
LVL 8

Expert Comment

by:Jesse Matlock
ID: 36718704
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"

0
 
LVL 8

Expert Comment

by:Jesse Matlock
ID: 36718725
Also, which Joomla version are you using?
0
 
LVL 8

Accepted Solution

by:
Jesse Matlock earned 500 total points
ID: 36718830
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... :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
joomla jdonation isquare API or plugin? 2 422
Joomla how to click graphic image and go to url 9 252
Fatal error: Class 'JDatabase' not found in 4 252
Customizing themes 14 69
Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now