广西pbootcms整理13个常用if条件判断语句总结
1. 导航高亮{pboot:if(’[nav:scode]’==’{sort:tcode}’)}class=“active”{/pboot:if}//用于非首页//完整示例{pboot:nav}[nav:name]{/pboot:nav}2. 判断有无子菜单{pboot:if([nav:soncount]>0)}…{/pboot:if}例1:二级栏目循环判断{pboot:nav}<li><ahref="[nav:link]">[na
- 影子CMS
- pbootcms教程
- 2022-10-06
- 18709
- 139