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.

 

Displaying Module once search has been actioned

Displaying Module once search has been actioned

Hi there,
We are developing a site and we have installed small module that allows users to use a drop down menu to select which section and category they would like to view articles from.

We want to show the 'Latest Cars' Module on the right hand side only on the front page.
Once a user has used the drop down menus, we do not want the 'Latest Cars' module to appear.

I have used the code:
if ( $core_genius->check( "pagetype = frontpage" ) ) return 81;

This does not work and I am unsure what I should change it to.

You can see our demo site at:
http://www.s217794495.websitehome.co.uk … arCompany/

We are using the main joomla front page comp as the home page.

Kindest Regards,
Sean R.

reders
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Re: Displaying Module once search has been actioned

Not to worry, I worked it out and used the code:

$menu =& JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) return XXX;

reders
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Re: Displaying Module once search has been actioned

Hmmm... not sure why the original one didn't work. Had you changed the default menu on your site to something other than the "frontpage" type? The JomGenius check for "pagetype = frontpage" specifically looks for the "frontpage" component, *not* simply "the default menu item (whatever that happens to be)".

Anyway, glad you got it working.

Best regards,
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:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10814
Newest User:
lloyd56785
Members Online:
0
Guests Online:
159

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