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
- » Can't find the Recipe for k2...
Page:
1
Can't find the Recipe for k2 items/category
Can't find the Recipe for k2 items/category
For some reason i cant seem to find the receipe for how to add meta mod on k2 items or category only pages. Is there a simple recipe for this? I know how to find the item info i just need the code i copy and paste.
One if adding multiple modules only to k2 item(or items)
One if adding multiple modules only to a category(categories)
Thanks in advance!
Administrator has disabled public posting
Re: Can't find the Recipe for k2 items/category
Code:
// return multiple modules on item view pages
$k2 = JomGenius("k2");
if ($k2->check("pagetype = item.view")) return "232, 463, 252";
// return multiple modules on specific item view pages (id 34, 35, 36)
$k2 = JomGenius("k2");
if ($k2->check("pagetype = item.view") and $k2->check("item_id = 34, 35, 36")) return "232, 463, 252";
// return multiple modules on all category pages
$k2 = JomGenius("k2");
if ($k2->check("pagetype starts with category") ) return "232, 463, 252";
// return multiple modules on specific category pages (id 101, 102, 103)
$k2 = JomGenius("k2");
if ($k2->check("pagetype starts with category") and $k2->check("category_id = 101,102,103")) return "232, 463, 252";
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Can't find the Recipe for k2...
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:
- 151
- 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