迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
模板标签里面
首页调用 两个 栏目 和栏目下的 子栏目名称,怎么才能生效?
{category module=share id=5,6 return=c} <div id="floor_2_main"> <div class="floor_2 w1200"> <div class="in_title clearfix" aos="fade-up" aos-easing="ease" aos-duration="700"> <p class="entit" aos="fade-up" aos-easing="ease" aos-duration="700">{dr_share_cat_value(5, 'typenameen')}</p> <h3 class="tit clearfix" aos="fade-up" aos-easing="ease" aos-duration="700" aos-delay="100"><em class="line"></em><span class="word">{$c.name}</span><em class="line"></em></h3> </div> <!--产品分类开始--> <div class="tab" aos="fade-up" aos-easing="ease" aos-duration="700" aos-delay="200">{if $c1.child} {category module=share pid=$c1.id return=c2} <a href="[field:typelink/]" title="{$c2.name}">{$c2.name}</a>{/category} {/if}</div> <!--产品分类结束--> <div class="proCenter" aos="fade-up" aos-easing="ease" aos-duration="700" aos-delay="200"> <ul class="list clearfix"> {module module=$c.mid catid=$c.id num=12 order=updatetime} <li><a href="{$t.url}" title="{$t.title}"><img src="{dr_thumb($t.thumb, 200, 200)}" alt="{$t.title}"/> <div class="title clearfix"> <h3 class="tit" >{dr_strcut($t.title, 16)}</h3> </div> </a></li> {/module} </ul> </div> <div class="more clearfix" aos="fade-up" aos-easing="ease" aos-duration="700"> <div class="line fl"></div> <a class="look_more fl" href="{dede:field name='typeurl'/}" title="查看更多>>" rel="nofollow">查看更多>></a> <div class="line fl"></div> </div> </div> </div> {/category}
{category module=share id=5,6 return=c} <div id="floor_2_main"> <div class="floor_2 w1200"> <div class="in_title clearfix" aos="fade-up" aos-easing="ease" aos-duration="700"> <p class="entit" aos="fade-up" aos-easing="ease" aos-duration="700">{dr_share_cat_value(5, 'typenameen')}</p> <h3 class="tit clearfix" aos="fade-up" aos-easing="ease" aos-duration="700" aos-delay="100"><em class="line"></em><span class="word">{$c.name}</span><em class="line"></em></h3> </div> <!--产品分类开始--> <div class="tab" aos="fade-up" aos-easing="ease" aos-duration="700" aos-delay="200">{if $c1.child} {category module=share pid=$c1.id return=c2} <a href="{$c2.url}" title="{$c2.name}">{$c2.name}</a>{/category} {/if}</div> <!--产品分类结束--> <div class="proCenter" aos="fade-up" aos-easing="ease" aos-duration="700" aos-delay="200"> <ul class="list clearfix"> {module module=$c.mid catid=$c.id num=12 order=updatetime} <li><a href="{$t.url}" title="{$t.title}"><img src="{dr_thumb($t.thumb, 200, 200)}" alt="{$t.title}"/> <div class="title clearfix"> <h3 class="tit" >{dr_strcut($t.title, 16)}</h3> </div> </a></li> {/module} </ul> </div> <div class="more clearfix" aos="fade-up" aos-easing="ease" aos-duration="700"> <div class="line fl"></div> <a class="look_more fl" href="{dede:field name='typeurl'/}" title="查看更多>>" rel="nofollow">查看更多>></a> <div class="line fl"></div> </div> </div> </div> {/category}
前缀混乱,重新整理一下思维逻辑