Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
[Solved] Show module only on Category Blog Layout, How ??
[Solved] Show module only on Category Blog Layout, How ??
Hi...
Metamod is awesome extension, I like this extension. Many Thanks to developer
I want to control module display like this :
Show module only on Category Blog Layout (but with Exclude certain Category) and don't appear (hide) on Full Article
For instance, I have category name : Cartoon and Photography
So I want to show module in All Category blog layout except on category Cartoon, category Photography and in the Full article
I believe Metamod can do this but i'm very confused how to setting it because I don't have a good knowledge in PHP programming
Site : http://www.freejoomlatemplatez.com/
Joomla version : 1.57
Metamod version : 1.0g/2.2c
Please Help.....
Thanks in advance
14-Feb-10 17:03:56
Re: [Solved] Show module only on Category Blog Layout, How ??
Hi Chuk,
nice and easy:
if ( $option == "com_content" and $view == "category" and (int)$id != XXX and (int)$id != YYY ) return ZZZ;
Replace XXX and YYY with the category IDs of the Cartoon and Photography categories. Replace ZZZ with the module ID of the module you want to display.
Also, don't forget to read and follow the instructions on http://www.metamodpro.com/get-started/quick-start
Cheers,
Stephen
Re: [Solved] Show module only on Category Blog Layout, How ??
Hello
I have searched the forum but can't find a way to only show modules on specific categories but not the articles within them, this is my code as it stands but I can't find a way to hide when in $view == 'article'
if ( $option == "com_content" and $view == "category" and (int)$id = 49 ) return 110;
I also tried this
if ( $option == "com_content" and $view == "category" and (int)$id = 49 ) return 110 elseif ($view == 'article' ) return null;
but hides the module on all pages
url http://www.counterfeitmag.co.uk/live-re … rk-records
Thanks
Re: [Solved] Show module only on Category Blog Layout, How ??
No dice, now I have trouble with the plugin deciding between a page being a category or an article
if (
$option == 'com_content'
and $view == 'article'
and $id == '49'
and $Itemid == '105' ) return null; does not work I think?
Re: [Solved] Show module only on Category Blog Layout, How ??
Hi underclass,
sorry it's taken a few days to get back to you... but can you be a bit more specific about what you want to achieve?
e.g. something like "I want to show module 110 when the category list page for category 49 is showing, but I don't want to show the module when any of the articles in that category are viewed".
I'm a little confused about what you're aiming for. It's probably a very simple recipe once I know what you're after.
Cheers,
Stephen
Re: [Solved] Show module only on Category Blog Layout, How ??
Hi-
I would like to do something similar to this using the module position option. I would like it to say hide all modules in position user14 if in article view. Is this possible? Would anyone know how to write this?
Thanks!
Best,
Fran
Re: [Solved] Show module only on Category Blog Layout, How ??
Re: [Solved] Show module only on Category Blog Layout, How ??
Hi
I am using Joomla 2.5.7. Metamod 3.11
My goal in installing metamod was to have modules appear on category blogs and have then have no modules (so I could have full width of page) for actual articles.
I found the recipe to make my J2.5 module appear on the category blog list but not the article that it leads to. http://www.metamodpro.com/metamod/recip … e-category
However, if I have any module published in the right position of my template it creates a right column. Metamod is the only module published in the right position, so even though the module it controls does not appear in the right column on the articles, metamod itself holds the blank column space open - I still end up not having full page width for the articles.
The only workaround I can think of is to use metatempate and modify the template a bit), anyone got a less drastic solution?
(Template Joombabamboo Koan on the Zen grid framework)
Thanks...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 1
- User Info:
- Total Users:
- 7669
- Newest User:
- norton4568
- Members Online:
- 2
- Guests Online:
- 150
- Online:
- norton4568, heles22597
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked