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.

 

Show modules on all submenus & items of a *VM* menu item

Show modules on all submenus & items of a *VM* menu item

Hi there, i am testing MetaMod and seems its what i was looking for smile

i am trying to show specific modules in each vm category menu , submenu and items.

Reading the recipes i found this http://www.metamodpro.com/metamod/recipes/40-general that look really close.
Does it work only for joomla menus? Can i modify it to work for vm menu also?

edit: found this thread http://www.metamodpro.com/forums/topic?id=159 but doesnt work hmm

Edited By: Mbit
12-May-11 14:57:25

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

Re: Show modules on all submenus & items of a *VM* menu item

seems it was a matter of time..
i search the forum and i found a solution.
The following code was like charm!

Code:


if ($option == "com_virtuemart") {
$category_id = JRequest::getVar("category_id");
if ($category_id == "94" OR $category_id == "93" OR $category_id == "95" OR $category_id == "96") {
return 100;
}
if ($category_id == "29" OR $category_id == "39") {
return 101;
}
}

i just have to include all the categories + subcategories ids in the if statement smile

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

Re: Show modules on all submenus & items of a *VM* menu item

Glad this is working for you - just a quick note for anyone else reading: there's a full page of Virtuemart recipes here:

http://www.metamodpro.com/metamod/recip … mart-pages

This also makes use of the JomGenius VirtueMart support:

http://www.metamodpro.com/jomgenius/parameters#vmobject

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Total Posts Today:
2
User Info:
 
Total Users:
4366
Newest User:
chicagosepticpumping
Members Online:
2
Guests Online:
163


Forum Legend:

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