DEDECMS模版语法-导航二级栏目调用
DEDECMS导航二级栏目调用(本站已使用):
<div id="menu">
<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>