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.

 

Itemid + Menus + VirtueMart

Itemid + Menus + VirtueMart

Hi all

Im trying to display Lateral Menus in specific positions inside Virtuemart.

Something like this :
Main Menu => Categories A, B, C, ...
Menu A => Category A
Menu B => Category B
etc ...

BUT

I dont want to display these menus in Product Details.

I tried :

Menu A Module > Show Title Yes > Enabled > Position A ( dont exists in template ) > Menus None
Menu B Module > Show Title Yes > Enabled > Position B ( dont exists in template ) > Menus None

MetaMod Module > Show Title No > Enabled > Position Left ( exists in template ) > Menus > Some positions in MainMenu & All positions in Menu A and Menu B

In PHP I tried this :

$vm = JomGenius("virtuemart");
$category_id = $vm->info( "category_id" );
if ( $vm->check( "pagetype != shop.product_details" ) ) {
  if ($category_id == "1") return 10;
  if ($category_id == "2") return 20;
  if ($category_id == "3") return 30;
}

Works fine in all page except in Product Details !!

Menus (A,B,...) dont show but I still have a "blank space" in position Left.

I changed Menu assigns to MetaMod module and tested changing Itemid ( from Principal Menu ) in url.
When I change to Itemid not assigned for MetaMod works perfect.

What Im doing wrong ?
How I can "break" this relation between Itemid ( Main Menu ) and MetaMod ?

Thanks in advance

webcorp
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Itemid + Menus + VirtueMart

Hi webcorp,

The problem that you are seeing is that the left and right columns normally (in most templates) collapse when there are no modules assigned to them.

I think that the Itemid thing is a red herring in this case.

When you assign a MetaMod to a module position (e.g. left or right), then there's a module assigned in that position, and this will cause the columns to not collapse, and you get left with the blank space there, even if the MetaMod doesn't contain any other modules. This is what you are seeing.

The answer? MetaMod Pro. It's a plugin that you use in addition to MetaMod. If the MetaMod does not contain any modules, it causes the MetaMod itself to be removed from the list of modules in that position. Therefore the template will see the left or right columns as truly empty, and they will collapse properly.

You can read more the situation in these FAQs:
http://www.metamodpro.com/metamod/faq/2 … etamod-was
http://www.metamodpro.com/metamod/faq/2 … th-matamod

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

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5912
Total Posts Today:
4
User Info:
 
Total Users:
11504
Newest User:
toko solo
Members Online:
0
Guests Online:
149

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