太阳成游戏网站CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
QQ1835022299
028-61286886
请问大佬,如何循环取出独立模块下的分类栏目,将其放在首页导航nav中。谢谢
官方默认,原来是这么写的。
{cache name=module-content return=m}
{if !$m.share}
{$m.name}
{category module=$m.dirname pid=0 return=t2}
{$t2.name}
{if $t2.child}
{category module=$m.dirname pid=$t2.id return=t3}
{$t3.name}
{/category}
{/if}
{/cache}
{category module=xxx pid=$t1.id return=t2} {$t2.name} {if $t2.child}
{category module=xxx pid=$t2.id return=t3} {$t3.name} {/category} {/if} {/category} {/category}