Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Only show at checkout, VM search and...
Only show at checkout, VM search and logout pages.
Only show at checkout, VM search and logout pages.
Hi, I am a newbie, I have metamod up and running with a few recipes. I am looking to have a module load only at checkout, the VM search results page and the VM logout page. I have the following code for checkout:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = checkout.index, shop.cart" ) ) return 131;
For VM search results page- I am using:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = shop.ask" ) ) return 130;
For the logout page I have nothing so far.
Would you be able to guide me as to where I am going wrong?
Many thanks
Andre
MetaMod v2.11, 2011-10-03
Joomla Version 1.5.25
VM 1.1.9
www.whoartnow.co.uk
18-Oct-12 11:10:37
Re: Only show at checkout, VM search and logout pages.
Yes, the page cache (plugin) will affect modules for non logged-in users! In this case it will be fine to use the cache, as the contents of the module depend only on what page is being viewed. If the MetaMod depends on something like the time of day, or type of browser, or other external factors then the page cache can't deal with those and would have to be turned off.
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Only show at checkout, VM search and...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7633
- Newest User:
- mingle7855
- Members Online:
- 0
- Guests Online:
- 131
- 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