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.

 

also not show on ***

also not show on ***

HIya All

I am tring to adapt the code below so that the module also does not show on for content item 115.  if ($option == 'com_content'and $id == '115')



Code:



$vm = JomGenius("virtuemart");

if ( $vm->check
( "pagetype startswith none of shop.cart, shop.savedcart, checkout" )

)
return 246;

wildwill
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: also not show on ***

I'd do it like this:

$vm = JomGenius("virtuemart");
if (
  $vm->check( "pagetype startswith none of shop.cart, shop.savedcart, checkout" )
  and $content_genius->check("article_id = none of 115")
) return 246;


Yes, you could do it with a check of $option and $id, but sometimes the boolean logic can trip you up, and I like the JomGenius syntax.

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

Board Info

Board Stats:
 
Total Topics:
1686
Total Polls:
6
Total Posts:
5933
Total Posts Today:
7
User Info:
 
Total Users:
4432
Newest User:
kinggambling14
Members Online:
0
Guests Online:
234

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