Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » K2Filter: Remove Module from K2 Item...
K2Filter: Remove Module from K2 Item Pages
K2Filter: Remove Module from K2 Item Pages
Hello,
My site is setup accordingly:
Products: K2 Categories Page (menu item)
Item: K2 Item Page
'Company Name': K2 Category Page
Website
I would like to know if its possible to remove the K2Filter module from the Item and 'Company Name' pages? If so, how do I go about doing that? I have tried several ways, using different recipes, but nothing seems to work.
Re: K2Filter: Remove Module from K2 Item Pages
Hi,
yes, this should be pretty easy to set up – once you know how!
I am guessing that the main VM menu item is of type "front page" and not "category", so the instructions below should be able to distinguish between the front page which will allow the k2filter module, and the category pages which will not.
1 - set your k2filter module to display on "none" menu items, so that it does not show up until MetaMod includes it on some pages
2 - set up a MetaMod, published, set to the same module position as the k2filtermodule, and set to the same menu items (or all pages) as the k2filtermodule was.
3 - make a note of the module id of the k2filtermodule
4 - in the MetaMod's PHP box, use the following code:
$vm = JomGenius("virtuemart"); // initialise object
if ( ! $vm->check( "pagetype = category, productdetails" ) )
return XXX;
// replace XXX with the module id of the k2filter module.
Hope that helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » K2Filter: Remove Module from K2 Item...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Posts this week:
- 2
- User Info:
- Total Users:
- 7642
- Newest User:
- mary26
- Members Online:
- 0
- Guests Online:
- 165
- 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