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.

 

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

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

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

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:
1667
Total Polls:
6
Total Posts:
5910
Total Posts Today:
1
User Info:
 
Total Users:
10152
Newest User:
kasautiizindagiikay
Members Online:
0
Guests Online:
224

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