Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Modules showing up on uncategorized...
Modules showing up on uncategorized articles & sections
Modules showing up on uncategorized articles & sections
Hello,
This is my first time using metamod and my php skills are quite basic. I'm not sure how this works yet. My issue is that certain modules are showing up on uncategorized articles and on sections/categories that are not part of the menu selection. Two modules display on the article that I would NOT like to show up. The Latest Articles module (user1) and a slide show type module that I have set to display only for the home page.
I was wondering what the code would be to get to this to work as intended. Thank you for your time & support.
Regards,
Rey
Re: Modules showing up on uncategorized articles & sections
Hi Rey,
would I be right in thinking that the two modules in question are set up just on the front page (i.e. Latest Articles and the slide show) ?
If so, I think you could put in a MetaMod and rule for each of those modules that causes it to ONLY show on the proper front page, not on any other pages including articles/sections/categories that are not part of the menu selection.
Something like:
if ( $option == "com_content" && $view == "frontpage") return XXX; /* replace XXX with the module id to place on the front page only */
What happens is that sometimes articles that are attached to the front page or to ALL pages also show up for content that doesn't have a menu link. The rule above does a double-check on the front page -- it ensures that it really is the front-page component that they are viewing, before including the module.
Hope that gets you started,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Modules showing up on uncategorized...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8028
- Newest User:
- musial8334
- Members Online:
- 0
- Guests Online:
- 142
- 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