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.

 

[SOLVED]show only a submenu

[SOLVED]show only a submenu

Stephen, I need to show a module in a submenu option, and not all submenus. How can I do this?

Edited By: sniper_rio
17-Nov-09 21:19:57

sniper_rio
Beginner Modder
ranks
useravatar
Offline
15 Posts
Administrator has disabled public posting

Re: [SOLVED]show only a submenu

Hi sniper_rio, I can't quite follow what you're asking for. Can you give more of an example please?

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

Re: [SOLVED]show only a submenu

Sorry my bad English. It would be something like:
Recognizing the itemid only a submenu. Example
Menu (classified)
submenu (informatica)
submenu (vehicles)
sumenu (real estate)
Only in real estate want to module.
With this recipe, I could use for other cases, always working with the itemid of specific submenus.

sniper_rio
Beginner Modder
ranks
useravatar
Offline
15 Posts
Administrator has disabled public posting

Re: [SOLVED]show only a submenu

Still struggling to understand... do you mean that it should detect when you are at the end of a branch of the menu tree? Or just detect a particular menu item?

What makes "real estate" any different from the other submenus that you have there?

If you want to identify a particular menu item, then you can simply check its $Itemid. Every menu item has a $Itemid. You can find those by looking at the Menu manager in the administrator pages, or by turning on Debug mode in MetaMod.

e.g. if ($Itemid == 63) return 101; // where 63 is the menu item that something has to display on, and 101 is the module to display.

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

Re: [SOLVED]show only a submenu

Thanks Stephen, that was what I wanted.
if ($Itemid == 63) return 101;

Perfect

sniper_rio
Beginner Modder
ranks
useravatar
Offline
15 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1689
Total Polls:
6
Total Posts:
5941
Posts this week:
1
User Info:
 
Total Users:
5355
Newest User:
titus87954
Members Online:
3
Guests Online:
105


Forum Legend:

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