Hi,
I have modified categories.tpl navigation in order to list top category, and subcat liek in example:
Main Cat A
A Sub Cat 1
A Sub Cat 2
A Sub Cat 3
The below code works great for this, but the only problem with this code is that it does not respect the sort order i have placed on the categories. I know that the functionality is working since it is listed in sorted order on the actual category page.
So if anyone can figure out how to have the below code respect the category sort order?
Code:
{{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}<br />
{if $c.order_by < 500}
<a href="home.php?cat={$c.categoryid}" class="rootcatlink"> {$c.category}</a><br>
{/if}
{foreach from=$allcategories item=cat}
{if $cat.parentid eq $c.categoryid}
{if $c.order_by < 500}
<a href="home.php?cat={$cat.categoryid}" class="catlink">{$cat.category}</a><br>
{/if}
{/if}
{/foreach}{/foreach}
{/if}
{/if}
{/capture}
{include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}