太阳成游戏网站CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
QQ1835022299
028-61286886
{cache name=module-content return=m
请问在主导航这里,调用全部独立模块怎么改成只调用独立模块中的指定几个模块名称:AA、BB、CC、DD呢
{cache name=module-content return=m} {if !$m.share && in_array($m.dirname, ["aa", "bb", "cc"])}
{/if}{/cache}判断一下就行
{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} {/category} {/if} {/cache}这是原来的代码,我加判断出错了,您看下if要加在哪个位置
{category module=$m.dirname pid=0 return=t2}-
{$t2.name}
{if $t2.child}
{/category}
{category module=$m.dirname pid=$t2.id return=t3}-
{$t3.name}
{/category}
{/if}