dedecms织梦三级导航栏目如何调用
指定ID类型
{dede:channelartlist typeid='1' row='50'}
{dede:field name='typename'/}
{dede:sql sql='Select * from dede_arctype where reid=~id~'}
<a href="[field:typedir function='str_replace("{cmspath}","",@me)'/]">[field:typename/]</a>
{/dede:sql}
{/dede:channelartlist}
不指定ID 常用于导航栏
<ul id="accordion" class="accordion">
{dede:channelartlist typeid='top' }
<li>
<div class="link"><i class="fa fa-paint-brush"></i>{dede:field name='typename'/}<i class="fa fa-chevron-down"></i></div>
<ul class="submenu">
{dede:sql sql='Select * from `dede_arctype` where reid=~id~ ORDER BY id'}
<li><a href="[field:typedir function='str_replace("{cmspath}","",@me)'/]">[field:typename/]</a></li>
{/dede:sql}
</ul>
</li>
{/dede:channelartlist}
</ul>