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.

 

[solved] don't display module in specific vm category

[solved] don't display module in specific vm category

Hi,

I currenty have rule

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = category")) return "170,174";

to display cherrypicker only on the category pages. Now I need to exclude one category.
How can I do that

Kind Regards

Edited By: metamodguy
21-Aug-13 00:04:18

niktaris
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: [solved] don't display module in specific vm category

Hi,

You can do it like this:

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = category")
  and $vm->check("category_id != 123")) return "170,174";

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

Re: [solved] don't display module in specific vm category

Thank you very much. works great

niktaris
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10091
Newest User:
lamanaudio
Members Online:
3
Guests Online:
159


Forum Legend:

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