Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » When articles of specific categories...
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
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?
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)
- Index
- » MetaMod
- » MetaMod General Support
- » When articles of specific categories...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5965
- Posts this week:
- 4
- User Info:
- Total Users:
- 8011
- Newest User:
- ignac84502
- Members Online:
- 0
- Guests Online:
- 120
- 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