在pbootcms模板内页调用子栏目,如果没有子栏目,则调用同级栏目
2024-09-20 01:00:39
{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} |