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.

 

Hide certain modules on the front page

Hide certain modules on the front page

I'm using Joomla 1.5.23 and MetaMod 2.8c, and I have a module that currently shows on every page of my site. I would like to use MetaMod to change this so that the module does not show on the front page, but still on all the other pages. How can I do this? I am somewhat of a newbie to Joomla. Thanks in advance! I would provide a link to my site, but it is locally hosted on my machine for kiosk access.

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

Re: Hide certain modules on the front page

Hi nlandis,

It depends a little on what type of page you are using for the front page of your site. For the standard frontpage component (the one that shows "featured" articles in a blog-style format) you can use this:

if ($core_genius->check("pagetype != frontpage")) return XXX;
// replace XXX with module id of the module to show
// on all pages except for front page.

If you are using any other type of page for the front page, then it's going to be different. If that's the case then I suggest turning on MetaMod "advanced debug" mode and viewing the front page. MetaMod should spit out some PHP suggestions. You can post them here and I'll advise on how to alter that so that the module gets displayed on all pages *except* for that one.

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:
1698
Total Polls:
6
Total Posts:
5944
Posts this week:
4
User Info:
 
Total Users:
5544
Newest User:
odom3140505
Members Online:
1
Guests Online:
151

Online: 
odom3140505

Forum Legend:

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