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.

 

Trying to get a recipe...

Trying to get a recipe...

In my virtuemart store, I want a module to only show up on the main list of categories page and nothing else.   I've followed the other recipe to get it on the browse pages, but that's not what I need.  It will show up on the first page of my store and none of the subsequent pages.


seems like it would exist, but I couldn't find it.

woochild
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Trying to get a recipe...

From e-mail: "and I want a recipe to get a module just on the front page (category list display) of virtuemart and none of the subsequent pages."

Ok, by that, I assume that you mean that you have a menu link to the VM component, and you want modules to appear on that, and on none of the other VM pages?

In that case I'd go for this:

Code:

if ($option == "com_virtuemart" and JRequest::getVar("page") == "") return 101;

// replace 101 with the module id that you want to include.

Let me know how it goes... I'm pretty sure that that should cover all bases but it would be good to have confirmation.

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

Board Info

Board Stats:
 
Total Topics:
1698
Total Polls:
6
Total Posts:
5944
Posts this week:
3
User Info:
 
Total Users:
5550
Newest User:
anjanarajput
Members Online:
1
Guests Online:
143

Online: 
Virtuemart

Forum Legend:

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