Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » [Solved] - Exclude module from...
[Solved] - Exclude module from specific page
[Solved] - Exclude module from specific page
Hi,
Using metamod I can allocate a module to a menu and then tell it to display on only one page in the menu but I don't know how to get the mod to display on all pages except one or two specific pages.
I had a look at this tutorial http://www.metamodpro.com/metamod/recip … mart-pages
but can't follow it for my situation which is not relevant to virtuemart.
This is the code from the two pages I wish not to have the module:
if (
$option == 'com_jreviews'
and $view == 'directory'
and $Itemid == '118'
) return 91; /* replace XXX with the module ID or position to display */
and
if (
$option == 'com_content'
and $view == 'featured'
and $Itemid == '101'
) return 91; /* replace XXX with the module ID or position to display */
Thanks
12-Nov-12 11:30:13
Re: [Solved] - Exclude module from specific page
Hi, that's a great question. Try it this way:
$test1 = (
$option == 'com_jreviews'
and $view == 'directory'
and $Itemid == '118'
);
$test2 = (
$option == 'com_content'
and $view == 'featured'
and $Itemid == '101'
);
if (!$test1 and !$test2) return 91; /* i.e. if it's not on page 1 AND not on page2, then show module */
Best regards,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » [Solved] - Exclude module from...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 219
- 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