织梦模板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>  

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

转载注明出处:https://www.heiqu.com/6a506367ef96920b583df6f9332b0c18.html