在進行網站后期程序建設的時候,我們通常會用到調取三級欄目的標簽,今天山東網站建設織夢無憂網絡就在這里向大家介紹一下關于dedecms調用三級菜單的應用
代碼如下:
{dede:type typeid='3' row='1'}[field:typename/]{/dede:type}(這里是導航菜單的當前欄目)
- {dede:field name='typename'/}
- [field:typename/]
{dede:sql sql='Select * from dede_arctype where reid=~id~' order by id }
{/dede:sql}
-
- [field:typename/]
Sql='Select from * dede_arctype where reid=~id~'order by ID {dede:sql}
Href= [field:typedir "function='str_replace {cmspath} ("
{/dede:sql}
-
{/dede:channel}
-- >
{dede:channelartlist typeid=''}
{/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:
Typeid='3'row='1'}[field:typename/]{/dede:type} {dede:type (here is the current column of the navigation menu).
Typeid=''} {dede:channelartlist
Href= >{dede:field "name='typeurl'/} {dede:field" name='typename'/}
{/dede:channelartlist}
~typename~ {dede:channel"}
Href='[field:typeurl/]'>[field:typename/]
Apply it on the OK, welcome to inquire:
套用一下就OK了,歡迎來電咨詢:
版權:所有文章為演示數據,版權歸原作者所有,僅提供演示效果!
轉載請注明出處:http://www.kangbangglove.com/wzjs/1936.html