Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » hide a menu
hide a menu
Re: hide a menu
Hi
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
,
first of all, sorry, I accidentally deleted your forum account :-( Please feel free to sign up again.
In answer to your question, MetaMod itself can't hide an individual menu item, but you can use it to hide an entire menu module, ASSUMING that the menu is being displayed in a module. Note: somtimes menus are displayed directly by the template, not in a module. When that happens MetaMod can't help you.
Ok, so let's say your module is being displayed in a module.
1 - set the menu module to display on "none" menu items. Take a note of the module's ID number.
2 - set up a MetaMod in the module position where you want the menu to appear (and disappear for registered users)
3 - in the PHP box in the MetaMod, enter the following:
if ($user->id == 0) return XXX;
// replace XXX with the module id of the module that is to appear ONLY for guests.
Hope that helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » hide a menu
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5965
- Posts this week:
- 4
- User Info:
- Total Users:
- 8011
- Newest User:
- ignac84502
- Members Online:
- 0
- Guests Online:
- 96
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked