DEDECMS织梦模版语法-导航二级栏目调用基础

DEDECMS导航二级栏目调用(本站已使用):
<div id="menu"> <ul id="nav"> <li class="mainlevel" id="mainlevel_01"><a href=http://www.dede58.com/"{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=http://www.dede58.com/"[field:typeurl/]" target="_blank">[field:typename/]</a>{/dede:type} <ul id="sub_{dede:field.typeid/}"> {dede:channel type='son' noself='yes'} <li><a href=http://www.dede58.com/"[field:typelink/]" target="_blank">[field:typename/]</a></li> {/dede:channel} </ul> </li> {/dede:channelartlist} <div class="clear"></div> </ul> </div>  

注:channelartlist标签不支持调用外部链接栏目

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/71ca5779adf1243cf547c60b83861ff8.html