十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
在进行网站后期程序建设的时候,我们通常会用到调取三级栏目的标签,今天成都网站建设创新互联就在这里向大家介绍一下关于dedecms调用三级菜单的应用
代码如下:
创新互联-专业网站定制、快速模板网站建设、高性价比敖汉网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式敖汉网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖敖汉地区。费用合理售后完善,十余年实体公司更值得信赖。
{dede:type typeid='3' row='1'}[field:typename/]{/dede:type}(这里是导航菜单的当前栏目)
{dede:channelartlist typeid=''}
{dede:sql sql='Select * from dede_arctype where reid=~id~' order by id }
{/dede:sql}
{/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'/}
Sql='Select from * dede_arctype where reid=~id~'order by ID {dede:sql}
Href= [field:typedir "function='str_replace {cmspath} ("
{/dede:sql}
{/dede:channelartlist}
~typename~ {dede:channel"}
Href='[field:typeurl/]'>[field:typename/]
{/dede:channel}
-- >
Apply it on the OK, welcome to inquire: 400-028-6601