{pboot:nav parent={sort:tcode}} <li> <span><a href="[nav:link]" rel="nofollow">[nav:name]</a></span> <dl> {pboot:2nav parent=[nav:scode]} <dt {pboot:if('[2nav:scode]'=='{sort:scode}')}class="active"{/pboot:if}><a href="[2nav:link]" class="san">- [2nav:name]</a></dt> {/pboot:2nav} </dl> </li> {/pboot:nav}
高亮运用到的代码就是这串:
{pboot:if('[2nav:scode]'=='{sort:scode}')}class="active"{/pboot:if}