-
- talkaboutdesign

-
Total Posts: 34
Joined: 2007-11-07
|
Hey guys, I’m trying to create a navigation that would be similar to http://www.abercrombie.com/ , where there are no drop downs, and when you select a category you go to a page that would have all the children displayed. The problem is I don’t know how to do this. I tried using the code from left.phtml and it would work for top level categories, but when I am lets say in tops under women, that nav with all the other categories under women will disappear. How do I make this happen?
Code I tried using:
<?$_categories=$this->getCurrentChildCategories()?> <?if($_categories->count()):?> <div class="box layered-nav"> <div class="head"> <h3><?=$this->__('Browse By')?></h3> </div> <div class="border-creator"> <div class="narrow-by"> <dl id="narrow-by-list"> <dt><?=$this->__('Category')?></dt> <dd> <ol> <?foreach ($_categories as $_category):?> <li> <a href="<?=$this->getCategoryUrl($_category)?>"<?if ($this->isCategoryActive($_category)):?> class="active"<?endif?>><?=$_category->getName()?></a> </li> <?endforeach?> </ol> </dd> </dl><script type="text/javascript">decorateDataList('narrow-by-list')</script> </div> </div> </div> <?endif;?> <!-- [ends] .browse-by // -->
|