Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying modules in Categories and...
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 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?!
Later
Pete
30-Nov-09 18:04:06
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
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying modules in Categories and...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7667
- Newest User:
- humble2601
- Members Online:
- 0
- Guests Online:
- 177
- 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