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.

 

Show only in articles recipe

Show only in articles recipe

How can I create a recipe to show a module only in the article view (not in component, blog etc...)

many thanks

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

Re: Show only in articles recipe

if ($core_genius->check("pagetype = article") ) return XXX;

// replace XXX with module id to use.

There's a complete list of all the pagetypes you can detect, along with many other factors, at: http://www.metamodpro.com/jomgenius/par … dcheckcore

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Show only in articles recipe

not working! it apears also in the blog category view!

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

Re: Show only in articles recipe

Have you gone through the Quick Start Guide? I think it's likely that you haven't disabled the "target" module, either by disabling it, or changing it to another module position, or setting it to display on "none" pages.

Or, perhaps you put the module ID in the "Quick module id include" box - you should remove it from there.

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Show only in articles recipe

Yes! I did as the quick step says! Are you shure is that the code??

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

Re: Show only in articles recipe

Yes, I am sure that's the code - I just tried it on my test server to be sure.

Can you try something - delete all the PHP code from the PHP box, then save the MetaMod, keeping everything else the same. If the target module still appears in the blog category view then you haven't followed the steps properly. If it disappears, then there's something wrong in MetaMod.

Oh, actually... what version of MetaMod do you have installed? If it's not the most recent version (2.5), then install v2.5 over the top of whatever version you have at the moment. There were some bugfixes related to pagetype, a couple of versions back.

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Show only in articles recipe

I did what you suggest and if I take the code from the box it still puts a blank module in that place in the blog category view.
I have installed the latest 2.5 version...
What can I do more? thank you very much for the help

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

Re: Show only in articles recipe

Ah, I see. This is a FAQ: http://www.metamodpro.com/metamod/faq/2 … etamod-was

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
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5910
Total Posts Today:
1
User Info:
 
Total Users:
10144
Newest User:
leonard5412396
Members Online:
2
Guests Online:
217


Forum Legend:

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