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.

 

Left Navigation will not hide

Left Navigation will not hide

I am new to this and wanted to know what I could be doing wrong in the case of hiding my left navigation on my Product and Checkout Page. The code that I am using:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( ! $vm->check( "pagetype = productdetails, shop.cart" ) ) return;
Not for sure what to return if I don't want to return anything at all. I don't want anything in the slot especially for my product page and cart. In my left navigation is a module called filters which is need on the category pages. (module position is called 'left') Currently it is on selected pages.  Any thoughts?

kdmonk1
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: Left Navigation will not hide

I really need help. Can someone provide me with detail instructions on how I can make the left navigation disappear? What information is needed from me to provide help?

Here is my advanced mode:

Page Identification
The PHP code below may be used to help MetaMod to identify the exact page that you are viewing. For help using this feature, please click here.
if (
$option == 'com_virtuemart'
and $view == 'productdetails'
and $Itemid == '134'
and $jinput->get('keyword') == '' /*!*/
and $jinput->get('filter_product') == '' /*!*/
and $jinput->get('virtuemart_category_id') == '6' /*!*/
and $jinput->get('virtuemart_product_id') == '6' /*!*/
and $jinput->get('limit') == 'int' /*!*/
and $jinput->get('limitstart') == '0' /*!*/
) return XXX; /* replace XXX with the module ID or position to display */
Note: lines starting with "and" and ending with /*!*/ contain rules that may be optional. You may wish to leave them out.
MetaMod debug info:
Module ID: 109
$option: com_virtuemart
$view: productdetails
$id:
$Itemid: 134
$timezone: UTC
$language: en-us
$language_code: en
$language_region: us
Including modules: None

kdmonk1
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: Left Navigation will not hide

Hi,

Here are some things to check:

1 - it looks like you are using Joomla 2.5 I think. In that case, the names of the VM page types are a little different. product details is still the same, but the cart is known as "cart" not "shop.cart". So the code should be:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( ! $vm->check( "page type starts with productdetails, cart" ) ) return;
return XXX; // replace XXX with the module id of the navigation module

(that will catch all the cart.* pages)

2 - you need to make sure that the navigation does not appear unless the MetaMod includes it. So, set the navigation module to menus:none or to a non-existent module position. That way, until MetaMod includes it, it will not show on the page. This is why we have the "return XXX" statement in the code I suggested above.

3 - don't put anything in MetaMod's "quick module or position include" box. Leave it empty in this case.

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
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Left Navigation will not hide

Thanks Stephen, I followed your instructions but I am still having issues showing the left navigation on regular category pages. I sent you a link to my site for more help. Forgot to mention that the module that I would like to show is called 'Filter'. So the filter should show on the category pages only.

kdmonk1
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Posts this week:
8
User Info:
 
Total Users:
5378
Newest User:
gary9131
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