DEDECMS织梦模版语法-导航二级栏目调用基础
DEDECMS导航二级栏目调用(本站已使用):
注:channelartlist标签不支持调用外部链接栏目
<div id="menu"> <ul id="nav"> <li class="mainlevel" id="mainlevel_01"><a href="{dede:global.cfg_basehost/}" target="_self">首页</a></li> {dede:channelartlist typeid='top' cacheid='channelsonlist'} <li class="mainlevel" id="mainlevel_{dede:field.typeid/}">{dede:type}<a href="[field:typeurl/]" target="_blank">[field:typename/]</a>{/dede:type} <ul id="sub_{dede:field.typeid/}"> {dede:channel type='son' noself='yes'} <li><a href="[field:typelink/]" target="_blank">[field:typename/]</a></li> {/dede:channel} </ul> </li> {/dede:channelartlist} <div class="clear"></div> </ul> </div> |
注:channelartlist标签不支持调用外部链接栏目