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.

 

Seemingly Simple Recipe...

Seemingly Simple Recipe...

This recipe I am looking for seems to be a simple request but I can't seem to find anything for it.  It appears that a module of mine that displays recently viewed products from virtuemart conflicts with some of the other components because prior to looking for a metamod recipe, I had it displayed on all menu items and apparently it is calling certain variables from virtuemart on the non-virtuemart component pages thus causing certain conflicts that are preventing those pages from rendering properly.  What I need is a recipe that will only display this specific module on ONLY virtuemart pages and nothing else. 

Since I don't really care whether it appears on the frontpage or not, I am using this code so far:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype != frontpage" ) ) return 448;

I am sure it is clumsy but any help would be appreciated.

Thanks

redlinesuperstore
Guest
useravatar
Offline
Administrator has disabled public posting

Re: Seemingly Simple Recipe...

Yes, that could work, but if you want it on only VM pages and nothing else, then this will do it:

if ($option == "com_virtuemart") return 448;

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

Re: Seemingly Simple Recipe...

Awesome thank you once again! You are amazing.

redlinesuperstore
Guest
useravatar
Offline
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5162
Newest User:
david30x73
Members Online:
0
Guests Online:
172

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