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.

 

Newbie Help needed: Slideshow ONLY to appear on homepage on Virtuemart

Newbie Help needed: Slideshow ONLY to appear on homepage on Virtuemart

Hi
I'm a total beginner here, with next to zero php experience, so will need a bit of nurturing here.
I am using Joomla 1.5.23 with the JA Larix template, Virtuemart & a customised Virtuemart theme vmTheme.

On my homepage www.mckeeverwools.com I have a slideshow (mod_jaslideshow2) that I ONLY want displayed on the homepage. Below the slideshow on the homepage is the category list of shop categories, to the left is the category menu tree.  What I need is when ANY category is selected, the mod_jaslideshow2 will disappear.

I have installed metamodpro and entered some php code that I found on another thread, but it doesn't seem to work.

Any help would be very, very much appreciated.

Thank you in advance

Ciaram

cirymarr
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Newbie Help needed: Slideshow ONLY to appear on homepage on Virtuemart

I forgot to mention that I put the following code into the php section of the mod_metamod, where ID 59 is the mod_jaslideshow2

$vm = JomGenius("virtuemart");
if ($vm and ($option != "com_virtuemart" or $vm->check("pagetype = frontpage") or $vm->page == "shop.index" ) ) return 59;

cirymarr
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Newbie Help needed: Slideshow ONLY to appear on homepage on Virtuemart

Hi cirymarr,

nice site! I'm not a knitter but my wife is...

Did you try this basic code for detecting the VM front page and putting the slideshow only on that page?

$vm = JomGenius("virtuemart");
if ($vm and $vm->check("pagetype = frontpage") ) return 59;

I'm assuming that the front page of the site is a completely normal VM menu item with no particular category id or page type set in it.

If you *have* set a particular category id or any other settings into the VM front page menu item, can you let me know what those are, and I can adjust accordingly.

It's also quite useful if you can temporarily turn on MetaMod "advanced debug" mode, and view the front page, then post the output from debug mode (then turn debug mode off again). That generally gives out some good information I can use to recommend a PHP line for you.

Best regards,
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: Newbie Help needed: Slideshow ONLY to appear on homepage on Virtuemart

Hi Stephen

I sorted this out myself – my mistake!  I didn’t read the user manual, thinking “sure I can do this!!”

Once I disabled the slideshow module from appearing on any menus, it worked – I realise now that the MetaMod module takes precedence over the individual module settings.

Many Thanks!

cirymarr
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1689
Total Polls:
6
Total Posts:
5941
Total Posts Today:
1
User Info:
 
Total Users:
5328
Newest User:
bwawsc
Members Online:
0
Guests Online:
72

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