Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


webcorp
Beginner Modder
ranks
useravatar
User Info

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


Administrator has disabled public posting
metamodguy
useravatar
User Info

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

Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 3100  Total Topics: 1196  Total Polls: 7  Total Posts: 4452  Total Posts Today: 3
User Info:   Newest User :  boca0   Members Online: 1   Guests Online: 103
Online 
Jeff78
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked