在進行網站后期程序建設的時候,我們通常會用到調取三級欄目的標簽,今天 北京網站建設 瑞恒網絡就在這里向大家介紹一下關于dedecms調用三級菜單的應用 代碼如下: div div {dede:type typeid=3 row=1}[field:typename/]{/dede:type}(這里是導航菜單的當前
在進行網站后期程序建設的時候,我們通常會用到調取三級欄目的標簽,今天
北京網站建設瑞恒網絡就在這里向大家介紹一下關于dedecms調用三級菜單的應用
代碼如下:
<div>
<div >
{dede:type typeid='3' row='1'}[field:typename/]{/dede:type}(這里是導航菜單的當前欄目)
</div>
<ul>
{dede:channelartlist typeid=''}
<li><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a>
<ul>
{dede:sql sql='Select * from dede_arctype where reid=~id~' order by id }
<li><a href="[field:typedir function='str_replace("{cmspath}","",@me)'/]#Menu=ChildMenu[field:reid/]" onclick="DoMenu('ChildMenu[field:reid/]')" >[field:typename/]</a></li>
{/dede:sql}
</ul>
</li>
{/dede:channelartlist}
In the later website construction program, we usually use the transfer of three column labels today Beijing website construction Ruiheng network is here to everybody introduce about dedecms call three menu application
Code as follows:
<div>
<div >
Typeid='3'row='1'}[field:typename/]{/dede:type} {dede:type (here is the current column of the navigation menu).
</div>
<ul>
Typeid=''} {dede:channelartlist
Href= >{dede:field "name='typeurl'/} {dede:field" name='typename'/}</a> <li><a
<ul>
Sql='Select from * dede_arctype where reid=~id~'order by ID {dede:sql}
Href= [field:typedir "function='str_replace {cmspath} (" <li><a ",", @me)'/]#Menu=ChildMenu[field:reid/] "onclick=" DoMenu ('ChildMenu[field:reid/]') ">[field:typename/]</a></li>
{/dede:sql}
</ul>
</li>
{/dede:channelartlist}
<! -- type='son'currentstyle= <li><a "href='~typelink~'>~typename~</a></li> {dede:channel"}
Href='[field:typeurl/]'>[field:typename/]</a></li> <li><a
{/dede:channel}
-- > </ul>
</div>
Apply it on the OK, welcome to inquire: 400-600-6204
<!-- {dede:channel type='son' currentstyle="<li><a href='~typelink~'>~typename~</a></li>"}
<li><a href='[field:typeurl/]'>[field:typename/]</a></li>
{/dede:channel}
--> </ul>
</div>
套用一下就OK了,歡迎來電咨詢:400-600-6204