Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.


Metamod to disable cu3er slidshow on viertuemart sub categories

Metamod to disable cu3er slidshow on viertuemart sub categories


Apologies for sounding like a complete noob, but we have just started using MetaMod pro and have a problem with the following situation:

A slideshow plays on each virtuemart category page. However, we want to disable the slideshow on each of the sub category pages. Now i've tried various methods from the tutorials but none do anything, let alone the right thing.

We are using Virtuemart 2, when using debug i've noticed that the category id ($id) isn't being populated, is this because it tries to populate from the url, but we are running descriptive urls?

I will worship the person that points me in the right direction! big_smile


Edited By: diyroberts
22-Mar-12 10:37:58

Beginner Modder
1 Posts
Administrator has disabled public posting

Re: Metamod to disable cu3er slidshow on viertuemart sub categories

Hi Leon,

sorry it's taken a few days to get back to you.

The use of SEF URLs won't actually change whether $id is populated. It still gets populated - it's a kind of magic!

Can you describe a little more the way that your categories and pages are set up, and which ones you want the slideshows to appear on or not appear on?

e.g. are there a fxed number of top level categories that you want the slideshow to appear on, and not appear on any other pages on the site?

If that's the case, then you could probably do something like this:

$vm = JomGenius("virtuemart");
if ($vm->check("category_id = 4, 5, 6, 10") and $vm=>check("pagetype = category")) return XXX;
// replace XXX with the module id to display on those categories
// replace 3, 4, 6, 10 with any list of the category ids on which to display the module.


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

3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Posts this week:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

Forum Legend:

 New Sticky