太阳成游戏网站CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
QQ1835022299
028-61286886
如何通过判断导航栏目模型来调用栏目
{category module=share pid=0 return=t1}{if $t比如产品模型==1}
产品栏目
{elseif $t新闻模型==1}
新闻栏目
{else}
栏目
{/if}
{category module=share pid=0 return=t1} {if $t1.mid=="product"} 产品栏目 {elseif $t1.mid=="news"} 新闻栏目 {else} 栏目 {/if} {/category}
专业技术团队
LED应用领域的创新者
{$t.name}
{category module=share pid=$t.id return=t2}-
{$t2.name}{if $t2.child}
{category module=share pid=$t2.id return=t3}
{/category}
{/if}
{/category}
{$t.name}
{category module=share pid=$t.id return=t2}-
{$t2.name}{if $t2.child}
{category module=share pid=$t2.id return=t3}
{/category}
{/if}
{/category}
专业技术团队
{$t.name}
{category module=share pid=$t.id return=t4}-
{/category}
LED应用领域的创新者
肯定有问题啊,上面都是$t.,你这里弄一个$t1,t1是哪里来的。。。。