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 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?

manju
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

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

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

Re: hide all other module when paricular menu is selected

hi

thank you very much sir for your such a descriptive reply,let me try out, and surely tell you my result,once again thanks alot ...for such a wonderful , clean description

manju
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: hide all other module when paricular menu is selected

hi sir

that works fine, thank you very much, ade a little change "none of parentitemids=101" as "itemid!=101"

manju
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10093
Newest User:
lamanaudio
Members Online:
0
Guests Online:
101

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