在进行网站后期程序建设的时候,我们通常会用到调取三级栏目的标签,今天 北京网站建设 瑞恒网络就在这里向大家介绍一下关于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