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
- » Left Navigation will not hide
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?
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
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
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.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Left Navigation will not hide
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:
- 159
- 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