Try the Demo

Magento Forum

   
Don’t get any Categories to display since update to 1.1.2
 
schmelzgeist
Sr. Member
 
Total Posts:  92
Joined:  2008-05-27
Marzipane World Capital (Lübeck, Germany)
 

i have customized my code for the display of categories. for a left side menu.

my start category hast still the id 48.
a vardump returned quite a bit of content, but i don’t seem to be able anymore to extract the id’s and titles nor the child categories..

i used this methods:

$collection Mage::getModel('catalog/category')->getTreeModelInstance()->getCollection();
foreach(
$collection as $category):   
                            
$_catid=$category->getId();
                        
$i=0;
        
        if(
$_catid==48):
        
$_childids=$category->getChildren();
        
$cid=explode(','$_childids);

        while(
$i count($cid)):
                foreach(
$collection as $childcat): 
    if ((
$childcat->getId())==$cid[$i]):
    
?>
  
<li class="menulist-items" id="<?php echo $cid[$i] ?>" onmouseout="toggleMenuList(1);toggleBackground(1,<?php echo $cid[$i] ?>)" onmouseover="toggleMenuList(0);toggleBackground(0,<?php echo $cid[$i] ?>)" ><a href="<?php echo $childcat->getCategoryIdUrl();  ?>"><?php echo $childcat->getName();  ?></a></li>
  
<?php endif;endforeach;$i++;endwhile;endif;endforeach; ?>

where do i have to change the code? and to what? please help it is quite urgent smile

 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*

 
Magento Community Magento Community
Magento Community
Magento Community
 
schmelzgeist
Sr. Member
 
Total Posts:  92
Joined:  2008-05-27
Marzipane World Capital (Lübeck, Germany)
 

Now it worked on every Page ike it should, but not on the Homepage wethe in a menu, nor in a category list template.

Could someone please explain this to me or point me in the right direction?  i’m a bit baffled :-|

 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*

 
Magento Community Magento Community
Magento Community
Magento Community
 
schmelzgeist
Sr. Member
 
Total Posts:  92
Joined:  2008-05-27
Marzipane World Capital (Lübeck, Germany)
 

it does not work on any CMS Page anymore!

Please Help!! :-(

 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*

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