liquidkrep
Total Posts: 4
Joined: 2008-06-04
I have got the left menu to work but when I go to product detail, there isn’t a left menu. So, is there any way to keep the menu stationery throughout the whole site.
thanks in advance.
vesvello
Total Posts: 27
Joined: 2007-12-01
How can I add a vertical menu in the home page?
alexlopez
Total Posts: 1
Joined: 2008-06-22
I would like to know how to show the list of categories on the left side on home page like http://www.greenstone.maori.nz/ does.
Thank you in advance.
Image Attachments
Click thumbnail to see full-size image
schmelzgeist
Total Posts: 91
Joined: 2008-05-27
Marzipane World Capital (Lübeck, Germany)
liquidkrep - 19 June 2008 12:12 PM
I have got the left menu to work but when I go to product detail, there isn’t a left menu. So, is there any way to keep the menu stationery throughout the whole site.
thanks in advance.
change the catalog.xml in the catalog_product_view section in the ‘root’ reference to the template where you use the vertical navigation:
< catalog_product_view > <!-- Mage_Catalog --> < reference name = "root" > < action method = "setTemplate" ><!-- change here -->< template > page / your - template - with - nav . phtml </ template ><!-- end change --></ action > </ reference > < reference name = "head" > < action method = "addJs" >< script > varien / product . js</script> </ action > </ reference > < reference name = "content" > < block type = "catalog/product_view" name = "product.info" template = "catalog/product/view.phtml" > < block type = "catalog/product_view_media" name = "product.info.media" as= "media" template = "catalog/product/view/media.phtml" /> < block type = "core/text_list" name = "alert.urls" as= "alert_urls" /> < block type = "catalog/product_list_upsell" name = "product.info.upsell" as= "upsell_products" template = "catalog/product/list/upsell.phtml" /> < block type = "catalog/product_view_additional" name = "product.info.additional" as= "product_additional_data" /> </ block > </ reference > < reference name = "right" > < block type = "catalog/product_list_related" name = "catalog.product.related" before = "-" template = "catalog/product/list/related.phtml" /> </ reference > </ catalog_product_view >
that should do it.for the product view, anyway,
Signature
WE have no future because our Present is too volatile.We have only riskmanagement.
The spinning of the given moment´s scenario. *Pattern Recognition.W.Gibson*
schmelzgeist
Total Posts: 91
Joined: 2008-05-27
Marzipane World Capital (Lübeck, Germany)
has anybody a clue how to use this menu with the same dropdownmenu like the top nav? The Design i’m currently working on is not so flexible to acommodate a collapsible menu. furthermore, i want this dropdownmenu just for one Category , any ideas?
Signature
WE have no future because our Present is too volatile.We have only riskmanagement.
The spinning of the given moment´s scenario. *Pattern Recognition.W.Gibson*
Flotec
Total Posts: 6
Joined: 2008-05-04
Sweden Stockholm
Hello,
I’m having some problems with the navigation on the left side. I’m using the instructions originally posted by Peter Hamilton in this thread.
After having done all the steps (3 total) I get a parser error (shown below) when I try to look at the page.
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 60: parser error : error parsing attribute name in /home/flotecma/public_html/mag/app/code/core/Mage/Core/Model/Layout/Update.php on line 276
Trace:
#0 /home/flotecma/public_html/mag/app/code/core/Mage/Core/Model/Layout/Update.php(276): mageCoreErrorHandler(2, ‘simplexml_load_...’, ‘/home/flotecma/...’, 276, Array)
#1 /home/flotecma/public_html/mag/app/code/core/Mage/Core/Model/Layout/Update.php(302): Mage_Core_Model_Layout_Update->fetchFileLayoutUpdates(’
Any ideas?
Thankful for any help.
davinder
Total Posts: 44
Joined: 2008-06-26
The menu works great for me but is there a way to show this vertical menu on home page?
schmelzgeist
Total Posts: 91
Joined: 2008-05-27
Marzipane World Capital (Lübeck, Germany)
davinder - 29 June 2008 02:18 PM
The menu works great for me but is there a way to show this vertical menu on home page?
Yes, just use the Templatefile for the home page where you put your menu
Signature
WE have no future because our Present is too volatile.We have only riskmanagement.
The spinning of the given moment´s scenario. *Pattern Recognition.W.Gibson*
SparxDesign
Total Posts: 15
Joined: 2008-06-18
Hi Everyone!!
Can this vertical menu be used for MODERN THEME?
Please let me know if it can… And how?
Add me on on MSN, or email me if you can help. I want a vertical menu for the categories but am using modern theme for the design.
I may have to use the original if this will not work!
Thanks
bobbrodie
Total Posts: 38
Joined: 2008-04-02
This menu is exactly what I’m looking for, but I ran into one problem: On the home page there is a category that has classes subopen and final attached to it even though it’s not selected. Any idea why something like that would happen?
Dudu
Total Posts: 3
Joined: 2008-07-26
How can I add a vertical menu in the home page ?
gtex
Total Posts: 1
Joined: 2008-07-23
hi,
I used this example from Peter Hamilton to build a vertical menu on magento 1.0 like this: http://magento.maetvaplanet.com/index.php/
it’s a good workin vertical menu with category and sub-category.
But after an update to magento1.1 this vertical menu not display sub-category like this: http://magento11.maetvaplanet.com/index.php/pagemenu
Someone had an idea what is wrong?
Thank you
Peter Hamilton - 15 June 2008 02:47 PM
Hi all, I dont know how far everone has got with the vertical category navigation as i started it as a toy project a day or two ago when i saw this thread.
here is what i have so far, it does a menu from your categories and creates it 3 levels deep (more could be added). The advantage is that only the theme files are being changed, no magento system files (mage etc).
layout (catalog.xml)
Added the following to the <default> ..code.. </default> section
< reference name = "left" > < block type = "catalog/navigation" name = "catalog.vertnav" template = "catalog/navigation/vert_nav.phtml" /> </ reference >
added a file called vert_nav.phtml in app/design/frontend/[yourinterface]/[yourtheme]/template/catalog/navigation/ with the following code
< div class= "vertical-nav-container box base-mini" > < div id = "vertical-nav" > < div class= "head" > < h4 > <?php echo $this -> __ ( 'Categories' ) ?> </ h4 > </ div > < ul id = "nav_vert" > <?php foreach ( $this -> getStoreCategories () as $_category ): ?> <?php $open = $this -> isCategoryActive ( $_category ); ?> <?php $potential = $_category -> hasChildren (); ?> < li >< a href = "<?php echo $this->getCategoryUrl($_category); ?>" <?php if( $open ) { echo ' class="open"' ; } ?><?php if( $potential ) { echo ' class="potential"' ; } ?> > <?php if( $potential && $open ) { echo 'v ' ; } elseif( $potential ) { echo '> ' ; }else{ echo ' ' ; }?><?php echo $_category -> getName (); ?> </ a > <?php if ( $open && $potential ): ?> < ul > <?php foreach ( $_category -> getChildren () as $subcategory ): ?> <?php $subCat = Mage :: getModel ( 'catalog/category' )-> load ( $subcategory ); ?> <?php $open = $this -> isCategoryActive ( $subCat ); ?> <?php $potential = $subCat -> hasChildren (); ?> < li >< a href = "<?php echo $this->getCategoryUrl($subCat); ?>" <?php if( $open ) { echo ' class="subopen"' ; } ?><?php if( $potential ) { echo ' class="potential"' ; } ?><?php if(! $potential && $open ) { echo ' class="final"' ; } ?> > <?php if( $potential && $open ) { echo 'v ' ; } elseif( $potential ) { echo '> ' ; }?><?php echo $subCat -> getName (); ?> </ a > <?php if ( $open && $potential ): ?> < ul > <?php foreach ( $subcategory -> getChildren () as $subsubcategory ): ?> <?php $subsubCat = Mage :: getModel ( 'catalog/category' )-> load ( $subsubcategory ); ?> <?php $open = $this -> isCategoryActive ( $subsubCat ) ?> < li >< a href = "<?php echo $this->getCategoryUrl($subsubCat); ?>" <?php if( $open ) { echo ' class="final"' ; } ?> > <?php echo $subsubCat -> getName (); ?> </ a ></ li > <?php endforeach; ?> </ ul > <?php endif; ?> </ li > <?php endforeach; ?> </ ul > <?php endif; ?> </ li > <?php endforeach ?> </ ul > </ div > </ div >
pdxwebhead
Total Posts: 11
Joined: 2008-07-16
Portland Oregon
Hi,
I am in the same situation, my sub-menu’s are not displaying in 1.1 either.
Signature
Learning Magento one mistake at a time....
ManishBhatra
Total Posts: 13
Joined: 2008-08-06
Thank you, it help me a lot.
Paulus
Total Posts: 20
Joined: 2008-07-21
pdxwebhead - 29 July 2008 07:21 AM
Hi,
I am in the same situation, my sub-menu’s are not displaying in 1.1 either.
How about now in 1.1.2?