云优cms调用三级导航

2023-01-18

云优cms调用三级导航

 <yunu:nav typeid='1'> 
    <li <eq name="$nav['id']" value="$navpid">class="on"</eq>><a href="{$nav.url}"  <if condition="$nav.child">class="v1"</if>><span>{$nav.title} <if condition="$nav.child"><i></i></if></span></a>
          <if condition="$nav.child">
            <dl class="nav-sub1">
              <volist name="nav['child']" id="v">
                <dd> <a href="{$v.url}"  <if condition="$v.child">class="v2"</if>><span>{$v.title}</span></a>
                  <if condition="$v.child">
                    <dl class="nav-sub2">
                      <volist name="v['child']" id="vv">
                        <dd> <a href="{$vv.url}" class="v3">{$vv.title}</a> </dd>
                      </volist>
                    </dl>
                  </if>
                </dd>
              </volist>
            </dl>
          </if>
       </li>
</yunu:nav>


Tag: 云优cms 云优cms导航