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 slideshow problems

Metamod slideshow problems

Im using a template (inspire virtuemart) that has a slideshow on the index. the problem is, that the slideshow is also shown in the cart.
the slideshow obviously uses all modules in a certain position to be shown.

i tried following to solve it:

Code:

$vm = JomGenius("virtuemart"); // need this at the start of every rule

if ( $vm->check( "pagetype = frontpage" ) ) return 98,99,100;

as a result i (still) dont see the sliders and got an empty slider for the metamod module. is there a way to fix this. or maybe, will metamodpro will be able to disable the slideshow on the cart page?


PHP-Version    5.5.30
Joomla! 3.4.1
VirtueMart 3.0.9
Latest MetaMod

EDIT: Fixed this problem another way.

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

Re: Metamod slideshow problems

In answer to your question (even if you solved it), the main issue with the code above is:

- when you return a list of items from a MetaMod code block, you need to put quotes around it or else it creates a PHP error which may or may not get reported.

So the correct code would be:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = frontpage" ) ) return "98,99,100";

Also, MetaMod Pro would solve the problem of an empty module position showing on pages where MetaMod is not displaying a module.

In any case I'm glad you solved your problem - that's the main thing.

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10778
Newest User:
negina4qx
Members Online:
0
Guests Online:
196

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