Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » righ side
righ side
Re: righ side
Hi,
I think you're talking about module positions that you want to be hidden when you are viewing certain page types in VM.
I should say up front that this will probably require MetaMod Pro, though you can test the solution using the free MetaMod module. It's just that without the Pro version, the column will not disappear, and will just have white space in it. With Pro, the column should collapse completely (as long as your template is set up to collapse empty module positions).
Ok, so here's what to do:
1 - read the Quick Start guide and make sure you understand it.
2 - set up your "target" module(s) (the one(s) that you want to disappear on the browse pages). Set them to "none" module positions, so that they will be hidden until MetaMod includes them. Take a note of the id numbers of the modules.
3 - set up a MetaMod, and have it set to "all" menus.
4 - In the MetaMod, use the following PHP code:
$vm = JomGenius("virtuemart");
if ( ! $vm->check("pagetype = shop.product_details")) return "xxx,yyy,zzz";
// replace xxx, yyy, zzz with a comma-separated list of module ids to hide on product_details pages
Alternatively, to stop them appearing on shop.browse pages, do this:
$vm = JomGenius("virtuemart");
if ( ! $vm->check("pagetype = shop.browse")) return "xxx,yyy,zzz";
Or to stop them on browse AND product_details pages, do this:
$vm = JomGenius("virtuemart");
if ( ! $vm->check("pagetype = shop.browse,shop.product_details")) return "xxx,yyy,zzz";
Hope that helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » righ side
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 1
- User Info:
- Total Users:
- 7669
- Newest User:
- norton4568
- Members Online:
- 1
- Guests Online:
- 173
- Online:
- norton4568
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked