{* category navigation tree *} {section name=i loop=$categories_tree} {if $categories_tree[i].categoryID != 1} {section name=j loop=$categories_tree max=$categories_tree[i].level-1}     {/section} {if $categoryID == $categories_tree[i].categoryID} {* selected node => point category and don't make a link *} {$categories_tree[i].name}
{else} {* not selected node => make a link to a category *} {if $categories_tree[i].level > 1}{$categories_tree[i].name} {else} {$categories_tree[i].name}{/if}
{/if} {/if} {/section}