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.

 

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

Later
Pete

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

petermatra
Beginner Modder
ranks
useravatar
Offline
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

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:
1689
Total Polls:
6
Total Posts:
5941
Posts this week:
1
User Info:
 
Total Users:
5339
Newest User:
trei50809
Members Online:
0
Guests Online:
111

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