Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

hide a menu

hide a menu

hello,

I discovered you modul, i tried tu use it but, i don't understand
how i can hide a menu for registered user
is it possible ??

tank you for your answer

menierseb
Guest
useravatar
Offline
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10091
Newest User:
lamanaudio
Members Online:
3
Guests Online:
90


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked