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 when user is viewing single article

Show module when user is viewing single article

Greetings,

If I want a special module (eg google translate) to show up ONLY when the user is viewing single articles. How is that possible?
I have metamod pro

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

Re: Show module when user is viewing single article

Easy. JomGenius (part of MetaMod) can detect different page types. The page type you are after is "article". So:

if ($core_genius->check("pagetype = article")) return XXX;
// replace XXX with the module id tha tyou want to display


Please also read the Quick Start guide:
http://www.metamodpro.com/metamod/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

Board Info

Board Stats:
 
Total Topics:
1689
Total Polls:
6
Total Posts:
5941
Posts this week:
1
User Info:
 
Total Users:
5348
Newest User:
towner4218
Members Online:
0
Guests Online:
141

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