/ Published in: PHP
Manually print out a category-navigation in a magento frontend template. within "stristr" you can enter an array of category-ids that should be hidden from display.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?> <?php if($_menu): ?> <div class="nav-container"> <ul id="nav"> <?php foreach ($this->getStoreCategories() as $_category): ?> <?php echo $this->drawItem($_category) ?> <?php endif ?> <?php endforeach ?> <?php// echo $_menu ?> </ul> </div> <?php endif ?>
URL: http://www.magentocommerce.com/boards/viewthread/55533/#t175320