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.

 

righ side

righ side

i dunno where should i put this thread. i have problem actually i have three side template left, main and right. i want make this right dissapear when i browse item on virtuemart so what recipe i use.

clarckconnect
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: righ side

is there anybody can help me :S

clarckconnect
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

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

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

Re: righ side

ok sir thanks for explanation ill try it

clarckconnect
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10746
Newest User:
victor1234
Members Online:
0
Guests Online:
227

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