云优cms调用二、三级分类标签

2023-01-11

云优cms左侧三级分类调用标签

<yunu:catlist cid="$category['id']" limit="20" type="parent" orderby="sort desc"> 
<h3 <if condition="$catlist['id'] eq $cid || $catlist['id'] eq $category['pid']">class="active"</if>>
<a href="{$catlist.url}">{$catlist.title}</a>
</h3>
<if condition="$catlist.child">
  <ul>
   <volist name="catlist['child']" id="v"> 
<li <if condition="$v['id'] eq $cid || $v['id'] eq $category['pid']">class="on"</if>>
<span class="iconfont icon-jiantou"></span><a href="{$v.url}">{$v.title}</a>
</li>
   </volist>
 </ul>
</if>
</yunu:catlist>

云优cms左侧二级分类通用调用标签

<yunu:catlist cid="$category['id']" type="self">
<li class="<if condition="$catlist['id'] eq $cid || $catlist['id'] eq $category['pid']">active</if>">
<a href="{$catlist.url}">{$catlist.title}</a>
</li>
</yunu:catlist>


Tag: 云优cms