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.

 

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

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

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

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

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5173
Newest User:
nycphoto22
Members Online:
2
Guests Online:
116


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked