Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

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.

JxnGraphix
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: K2Filter: Remove Module from K2 Item Pages

Hi,

yes, this should be pretty easy to set up – once you know how! smile

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4385
Newest User:
hudson5478
Members Online:
1
Guests Online:
384

Online: 
hudson5478

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked