织梦dede channelartlist制作二级导航代码方法

<li><a {dede:field name=typeid runphp="yes"}(@me=="")? @me=" class='active' ":@me="";{/dede:field} href="/"> 网站首页</a></li>

    {dede:channelartlist typeid='top'   currentstyle='active'}
         <li><a href="{dede:field name='typeurl'/}"  class="{dede:field.currentstyle/}" >{dede:field name='typename'/}</a>
                <ul>
                  {dede:channel type='son' noself='yes'}
                  <li><a href="[field:typelink/]">[field:typename/]</a></li>
                   {/dede:channel}
                </ul>  
          </li>
     {/dede:channelartlist}

织梦模板就上刘小白,刘小白做完整的织梦模板

THE END

非特殊说明,本博所有文章均为博主原创

如若转载,请注明出处:https://www.htmlbk.com/dedecms/345.html