Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Vertical Category Woes [Solved in other thread, please delete]
 
andrewmaier
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2008-01-13
 

Okay, for some reason, I couldn’t bump the last post about vertical category lists. I wanted to get an answer why the following wasn’t rendering correctly:

(It’s up at http://magento.vertigocore.com (on a mediatemple gridserver).)

Presently, my catalog.xml has:

<reference name="left.menu">
<
block type="catalog/navigation" name="catalog.leftnavig" before="-" template="catalog/navigation/left_menu.phtml"/>
</
reference>

my page.xml

<block type="core/text_list" name="left" as="left"/>
<
block type="core/text_list" name="left.menu" as="leftMenu"/>

my 3columns.phtml

<!-- [start] left -->
<
div class="column span-4">
<?=$this->getChildHtml('leftMenu')?>
<?
=$this->getChildHtml('left')?>
</div>
<!-- 
[end] left -->

my templates/catalog/left_menu.phtml:

<?php
$_main_categories
=$this->getStoreCategories(10);
if(
$_main_categories->count()):
?>

<div id="allCategories" class="blueShade">
<
h3><span><?=$this->__('My categories')?></span></h3>
<
div class="border-creator">
<
div class="narrow-by">
<
dl id="narrow-by-list">
<?foreach ($_main_categories as $_main_category):?>
<dt><a href="<?=$this->getCategoryUrl($_main_category)?>"<?if ($this->isCategoryActive($_main_category)):?> class="active"<?endif?>><?=$_main_category->getName()?></a></dt>
<
dd>
<
ol>
<? $_sub_categories=$this->_getChildCategories($_main_category10); ?>
<?foreach 
($_sub_categories as $_sub_category):?>
<li>
  -><
a href="<?=$this->getCategoryUrl($_sub_category)?>"<?if ($this->isCategoryActive($_sub_category)):?> class="active"<?endif?>><?=$_sub_category->getName()?></a></li>
<?endforeach?>
</ol>
</
dd>
<?endforeach?>
</dl>
<
script type="text/javascript\">decorateDataList(’narrow-by-list’)</script>
</div>
</
div>
</
div>
<?endif;?>

Sorry, I just don’t get it. I think everything checks out.

-A

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top