Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.


Displaying modules in Categories and articles, exclude one article

Displaying modules in Categories and articles, exclude one article

Hi Guys, I just discovered this Mod and it sounds great. PHP is rather foreign to me even though I have been using Joomla forever smile These recipes seem rather straight forward to me but I have no clue how to get this to work.

All of this can be seen at my site http://www.awantedmag.com Go to PAST ISSUES.

So - the menu button PAST ISSUES has a Category List Layout. It lists all articles from my first issue. The modules I show in the list layout I want to keep in the articles, but I need to exclude the modules from one specific article. I know this has got to be simple.

I see recipes...but I see no COOKBOOK?? where do I find this stuff?!lol


Edited By: petermatra
30-Nov-09 18:04:06

Beginner Modder
1 Posts
Administrator has disabled public posting

Re: Displaying modules in Categories and articles, exclude one article

Hi Peter,

this should be pretty easy.

- put the modules into a MetaMod on that menu item.
- disable the original modules (MetaMod will re-enable them when it includes them)
- turn off the title display of the MetaMod
- use a rule like the following:

if ($option == "com_content" and $view == "article" and (int)$id == 47 ) return;
else return 101;

What that does is returns "nothing" if the person is viewing the article with id #47.
Otherwise, it returns module 101.

Replace 47 with the id for the article on which you want no modules.
Replace 101 with the module id for all other articles, + the category list display.

Hope that helps,

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

3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Total Posts Today:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

Forum Legend:

 New Sticky