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 module

Hide module

Hello
Can someone help me this:
As we all know in module "Menu Assignment" we have 3 options, All,  None,  Select Menu Item(s) from the List, my question is:
Can I have the "All" option selected and hide a module from a menu item?
Example:
I have the Expose component in one menu item and I wound like to hide the "a" module for this menu so if I select "All" option the "a"module" will show in all my articles without showing in the expose gallery

Thank's

afiune
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Hide module

Hi Aflune,

Is this what you mean:

- you want to show a particular module on all menu item *except* a particular menu item?

If so, yes that's really easy to do.

You could use a rule like this:

Code:

if ($Itemid != 55) return 101;

... where the 55 is the menu id (Itemid) of the Expose gallery, and 101 is the module id of the module you want to show on every other page (the "a" module as you describe it).

You can find out the Itemid that you need to use by either finding it in the URL (if you don't have SEF URLs turned on), or go to the menu manager and look for the "id" column next to the menu item for the expose gallery.

Don't forget to follow all the other setup instructions when setting this up... e.g. set the "Menu Assignment" to "none" for the "a" module, and to "all" for the MetaMod.

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
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1680
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10831
Newest User:
bluesky1
Members Online:
0
Guests Online:
141

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