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.

 

[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 smile

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 smile

Edited By: chuk
14-Feb-10 17:03:56

chuk
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

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

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

Re: [Solved] Show module only on Category Blog Layout, How ??

Hi Stephen...

Fantastic !!!
You are STAR, thanks very much for your information

Problem Solved, thanks smile smile

chuk
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

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

underclass
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: [Solved] Show module only on Category Blog Layout, How ??

solved it using:

if (
$option == 'com_content'
and $view == 'category'
and $id == '49'
and $Itemid == '105' ) return 110;

underclass
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

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?

underclass
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

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

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

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

franjaco
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [Solved] Show module only on Category Blog Layout, How ??

See http://www.metamodpro.com/forums/topic?id=329#p1407

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

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...

suzannemmp
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Posts this week:
7
User Info:
 
Total Users:
5387
Newest User:
tomasini8h
Members Online:
1
Guests Online:
113

Online: 
tomasini8h

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked