<ul>

{pboot:nav num=10 parent={sort:tcode}}
<li><a href="[nav:link]">[nav:name]</a></li>

{pboot:if([nav:soncount]>0)}
{pboot:2nav num=10 parent=[nav:scode]}
<li><a href="[2nav:link]">[2nav:name]</a></li>
{/pboot:2nav}
{/pboot:if}

{/pboot:nav}

</ul>


当前栏目菜单高亮栗子：

<ul>
{pboot:nav num=10 parent={sort:tcode}}
<li {pboot:if('[nav:scode]'=='{sort:scode}')}class='active'{/pboot:if}><a href="[nav:link]">[nav:name]</a></li>

{pboot:if([nav:soncount]>0)}
{pboot:2nav num=10 parent=[nav:scode]}
<li {pboot:if('[2nav:scode]'=='{sort:scode}')}class='active'{/pboot:if} ><a href="[2nav:link]">[2nav:name]</a></li>
{/pboot:2nav}
{/pboot:if}

{/pboot:nav}
</ul>
