Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » [Solved] Adding second page ID to...
[Solved] Adding second page ID to existing meta module
[Solved] Adding second page ID to existing meta module
Maybe i'm doing this the hard way, so plz advise.
I have metamod pro and got it working great anytime I a K2 article shows up, all my modules above the article are hidden.
using the following recipe for each module
Code:
if ($option == "com_k2" and $view == "item") return; // return no module if you're on that page
return 101; // replace XXX with module ID to use on all other pages.
Now, if I want to do the same with the registration page for JomSocial, I can't just add to the same code, right? I have to create another meta module and apply the unique page id to that one? If there is a better way, please let me know, I don't want to duplicate 12 more modules if its not necessary.
Thanks for a great product,
Chris
fullflexoffroad.com
07-Mar-11 09:02:43
Re: [Solved] Adding second page ID to existing meta module
Hi Chris,
if the modules are in different module positions, then you need to create at least 1 MetaMod for each module position, and do more or less what you did above.
If all the modules are in the same module position then you can get away with putting everything into one.
For example you could have something like this (untested, but just as an example):
// no modules for k2 item page
if ( $option == "com_k2" and $view == "item" ) return;
// no module for JomSocial registration page
if ( $option == "com_community" and $view == "register" ) return;
return 101; // module for every other type of page.
Get the idea?
Hope that helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » [Solved] Adding second page ID to...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7624
- Newest User:
- borger3298
- Members Online:
- 0
- Guests Online:
- 231
- 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