Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Metamod to disable cu3er slidshow on...
Metamod to disable cu3er slidshow on viertuemart sub categories
Metamod to disable cu3er slidshow on viertuemart sub categories
Hi,
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!
Leon
22-Mar-12 11:37:58
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.
Cheers,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Metamod to disable cu3er slidshow on...
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:
- 0
- Guests Online:
- 104
- 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