迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
求助大佬
我想循环指定栏目(id为95)下的子栏目,
给当前对应的栏目添加栏目添加类名
但是我第一个就循环不出来,不知道哪里出了错
{category module=share pid=95 return=c1} {if $c1.child} {category module=share pid=$c1.id return=c2} <a href="#" class="item on">{$c2.name}</a> {/category} {/if} {/category}
{category module=share pid=95 return=c1} {if $c1.child} {category module=share pid=$c1.id return=c2} <a target="_blank" href="#" class="item on">{$c2.name}</a> {/category} {/if} {/category}
{if $c1.child}
{category module=share pid=95 return=c1} {category module=share pid=$c1.id return=c2} <a href="#" class="item on">{$c2.name}</a> {/category} {/category}
{category module=share pid=95 return=c2} <a target="_blank" href="#" class="item on">{$c2.name}</a> {/category}
还是不生效呀,大大~