Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Metamod slideshow problems
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.
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
- Index
- » MetaMod
- » MetaMod General Support
- » Metamod slideshow problems
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7629
- Newest User:
- claudiabush9
- Members Online:
- 1
- Guests Online:
- 163
- Online:
- claudiabush9
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked