Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » pixelatumente
pixelatumente
pixelatumente
I have a sales website. On the home page I have the form of VM2 and I would like to display the search results, the modules below the menu does not appear at startup. I used:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype != frontpage" ) ) return 114;
/* replace XXX with the module id or position you want
* to display <em>except</em> on the front page of VirtueMart
*/
what I would need is that when the display url "search" disable modules.
Ex:
http://www.elmundodelafiesta.es/search? … w=category
Re: pixelatumente
Ok, I take it that you don't want the modules on the frontpage, AND you don't want them on the search results page. Correct?
If so, this should do it:
$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = none of frontpage, searchresults" ) ) return 114;
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » pixelatumente
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7660
- Newest User:
- marino9885
- Members Online:
- 0
- Guests Online:
- 185
- 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