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 module on articles beloging to a section

Show module on articles beloging to a section

Hi,
How can I used MetMod to show a module on all the articles beloging to a certain section?

Would be more than grateful if you could show me how

Thanks

nahed
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Show module on articles beloging to a section

(1) Read the Quick Start guide: http://www.metamodpro.com/metamod/quick-start

(2) Set up your target module (the one that you want to appear in the articles of every section). Set it up as normal, EXCEPT set it to "menu items: none".

(3) Set up the MetaMod in the module position that you want the target module to appear in, and make sure it's enabled. Use the following PHP:

if ($core_genius->check("pagetype = article") and $content_genius->check("section_id = 5")) return XXX;
// replace "5" with the section id you want to check for,
// and replace XXX with the module id of your target module.

That's it smile

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

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Posts this week:
7
User Info:
 
Total Users:
5418
Newest User:
outsd2
Members Online:
0
Guests Online:
152

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