Magento Forum

How can I change the order in my top navigation
 
jancerny
Jr. Member
 
Total Posts:  16
Joined:  2010-10-14
 

Hi,

I have a top navigation..set up in template. How can I change the order in this navigation?? I need fix it like by position in admin..

<?php $children = 0; foreach($category['children'] as $id => $firstChildCategory): ?>
<li><a href="<?php echo $firstChildCategory['url'] ?>” title="<?php echo $firstChildCategory['name'] ?>">
<?php if(false === is_null($CurrentCategory) && $id == $CurrentCategory->getId()): ?>
<strong><?php echo $firstChildCategory['name'] ?></strong>
<?php else: ?>
<?php echo $firstChildCategory['name'] ?>
<?php endif ?>
</a></li>
<?php foreach($firstChildCategory['children'] as $id => $secondChildCategory): $children++; ?>
<?php if($children >= $childrenPerColumn): ?>
</ul>
</div>
<div class="span1">
<ul>
<?php $children = 0; endif ?>
<li><a href="<?php echo $secondChildCategory['url'] ?>” title="<?php echo $secondChildCategory['name'] ?>">
<?php if(false === is_null($CurrentCategory) && $id == $CurrentCategory->getId()): ?>
<strong><em><?php echo $secondChildCategory['name'] ?></em></strong>
<?php else: ?>
<em><?php echo $secondChildCategory['name'] ?></em>
<?php endif ?>
</a></li>
<?php endforeach ?>
<?php $children++; endforeach ?>

Cheers,
Jan

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