Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Hide certain modules on the front page
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.
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
- Index
- » MetaMod
- » MetaMod General Support
- » Hide certain modules on the front page
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Posts this week:
- 2
- User Info:
- Total Users:
- 7642
- Newest User:
- mary26
- Members Online:
- 0
- Guests Online:
- 172
- 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