迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架, 基于MIT开源许可协议发布,不限制商业使用,以多端互联为设计理念, 支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
怎么把二级栏目和三级栏目循环成这样显示???
{category module=share pid=0} <a target="_blank" href="{$t.url}" title="{$t.name}">{$t.name}</a> <!--第二层:调用第二级共享栏目--> {if $t.child} {category module=share pid=$t.id return=t2} <li><a target="_blank" href="{$t2.url}" title="{$t2.name}" class="uk-link-heading">{$t2.name}</a></li> {/category} {/if} {/category}
{category module=share pid=0} <a target="_blank" href="{$t.url}" title="{$t.name}">{$t.name}</a> <!--第二层:调用第二级共享栏目--> {if $t.child} {category module=share pid=$t.id return=t2} <li><a target="_blank" href="{$t2.url}" title="{$t2.name}" class="uk-link-heading">{$t2.name}</a></li> {/category} {/if} {/category}非常基础,哈哈