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.

 

When articles of specific categories are displayed return module

When articles of specific categories are displayed return module

Hi,

I'm working on a site in J 3.3 and am trying to use the free Metamod module. To achieve what I described in the subject, I added the following PHP:

if ( $content_genius->check("pagetype = article")
    and $content_genius->check("category_id = 8,9,13") ) return 128;

Unfortunately the menu is not displayed...

Any suggestions?

Best regards,
Paul

pstelt
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: When articles of specific categories are displayed return module

Hi,

basic checklist for you:

1 - MetaMod must be published and set to a valid module position
2 - try turning on debug mode in the MetaMod and ensure that you get some output on the page (just to show that it's assigned correctly)
3 - try using the following PHP in the MetaMod just to display some info about what type of page it's on:

echo "Pagetype: " . $content_genius->info("pagetype") . " -- cat id: " . $content_genius->info("category_id");

are you getting any info from the MetaMod when you have that on?

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: When articles of specific categories are displayed return module

Also you could try this to ensure that the menu is shown when metamod imports it, though without the logic:

return 128;

(without all the other code; just use that)

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:
1680
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10831
Newest User:
bluesky1
Members Online:
0
Guests Online:
90

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