在進(jìn)行網(wǎng)站后期程序建設(shè)的時候,我們通常會用到調(diào)取三級欄目的標(biāo)簽,今天 北京網(wǎng)站建設(shè) 瑞恒網(wǎng)絡(luò)就在這里向大家介紹一下關(guān)于dedecms調(diào)用三級菜單的應(yīng)用 代碼如下: div div {dede:type typeid=3 row=1}[field:typename/]{/dede:type}(這里是導(dǎo)航菜單的當(dāng)前
在進(jìn)行網(wǎng)站后期程序建設(shè)的時候,我們通常會用到調(diào)取三級欄目的標(biāo)簽,今天
北京網(wǎng)站建設(shè)瑞恒網(wǎng)絡(luò)就在這里向大家介紹一下關(guān)于dedecms調(diào)用三級菜單的應(yīng)用
代碼如下:
<div>
<div >
{dede:type typeid='3' row='1'}[field:typename/]{/dede:type}(這里是導(dǎo)航菜單的當(dāng)前欄目)
</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