Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » hide all other module when paricular...
hide all other module when paricular menu is selected
hide all other module when paricular menu is selected
hi,
first of thanks alot for your fanatastic module, i did almost 50% by using metamod itself!!! but i cannot figure out one thing that, when the user select a particular menu item, i need to hide all the modules, how can i do that?
Re: hide all other module when paricular menu is selected
Hi manju,
if you're just using the free MetaMod module, then the only way to do this is to put a MetaMod into each module position, and use that to control the other modules.
I'd do it like this:
1 - for each of your module positions (let's say top, left and right), change all of the modules that are in these module positions, and assign them to a module position called "top-metamod", "left-metamod" or "right-metamod". You can just type in the new position name into the drop-down on the module edit screen.
2 - create a metamod in each of the 3 module positions.
3 - in each module position, use the following rule:
if ($menu_genius->check("none of parentitemids = 101")) return "top-metamod";
... replace the top-metamod with left-metamod or right-metamod depending on which module position it's in.
Also replace "101" with the Itemid (menu id) of the menu item that you want to exclude. If you want to exclude more, just add extra ids separated with commas.
You can find the Itemids either by looking at the URLs of the pages in the front end, or in the back end by looking in the menu manager.
If you want to add more modules to these positions, just add them to the *-metamod positions instead of the original top, left, right positions.
If you're using MetaMod Pro then there's a way that you can switch off any modules on the page from inside 1 MetaMod. But for turning off ALL modules in certain positions, then it's going to be easiest to do what I described above.
Hope that helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » hide all other module when paricular...
Board Info
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked