Return to Snippet

Revision: 12556
at March 18, 2009 18:45 by Bluewall

Initial Code
this code works for vertical navigation category�



 * Top menu for store


 * @see Mage_Catalog_Block_Navigation




<div class=�box_mini_vert�>

    <div id=�vertical-nav-container �>

<?php foreach ($this->getStoreCategories() as $_category): ?>

<?php foreach ($this->getCurrentChildCategories() as $_categories): ?>

/*in this line $_categories->getUrl() is present so you can get link of your categories*/

 <ul class=�vert_left_list_style�>

<li><b><?php echo �<br/>� ?><a href=�<?php echo $_categories->getUrl() ?>�><?php echo $_categories->getName(); ?></a></b></li>



        <?php foreach ($_categories->getChildren() as $childcategory):?>

        <?php echo $this->drawItem($childcategory) ?>

     <?php endforeach; ?>


<?php endforeach; ?>



Initial URL

Initial Description

Initial Title
magento: vertical navigation category with links

Initial Tags

Initial Language