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.

 

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! big_smile

Leon

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

diyroberts
Beginner Modder
ranks
useravatar
Offline
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.


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

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5912
Total Posts Today:
4
User Info:
 
Total Users:
11504
Newest User:
toko solo
Members Online:
0
Guests Online:
192

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