pbootcms模板内页调用子栏目,如果没有子栏目则调用同级栏目
{pboot:if('{pboot:nav parent={sort:scode}}[nav:name]{/pboot:nav}'!='')} {pboot:nav parent={sort:scode}} <div class="pro_div"> <a class="item fl {pboot:2if('[nav:scode]'=='{sort:scode}')}on{/pboot:2if} " href="[nav:link]">[nav:name]</a> </div> {/pboot:nav} {else} {pboot:nav parent={sort:pcode}} <div class="pro_div"> <a class="item fl {pboot:2if('[nav:scode]'=='{sort:scode}')}on{/pboot:2if} " href="[nav:link]">[nav:name]</a> </div> {/pboot:nav} {/pboot:if} |