Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » also not show on ***
Page:
1
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;
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
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod
- » MetaMod General Support
- » also not show on ***
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5941
- Posts this week:
- 1
- User Info:
- Total Users:
- 7618
- Newest User:
- goure1dhowen
- Members Online:
- 0
- Guests Online:
- 149
- 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