zoukankan      html  css  js  c++  java
  • dedecms织梦调用二级和三级分类标签

    dedecms调用二级、三级以及调用栏目所有子栏目

    <!--频道分类具体内容开始-->
            <div class="channel_sort">
            {dede:channelartlist  cacheid='channelsonlist'} 
            <h3><a href="{dede:field name='typeurl'/}" >{dede:field name='typename'/}</a></h3>
                <ul>
                    {dede:channel type='son' row='10' noself='yes'} 
                    <li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>{/dede:channel} 
                </ul>
            {/dede:channelartlist} 
            </div>

    【Channel 标记】

    功能说明:用于获取栏目列表
    适用范围:封面模板、列表模板、文档模板
    (1)基本语法
    {dede:channel row='' type=''}
    自定义样式模板(InnerText)
    {/dede:channel}
    (2)属性
    [1] row='数字' 表示获取记录的条数(通常在某级栏目太多的时候使用,默认是 8)
    [2] type = top,sun/son,self
    type='top' 表示顶级栏目
    type='son' 或 'sun' 表示下级栏目
    type='self' 表示同级栏目
    其中后两个属性必须在列表模板中使用。

    转载请注明出处!小鱼阁工作室 -专注zencart建站,织梦企业建站,ecshop商城,二次开发,产品采集,模板修改!技术QQ 631992791
  • 相关阅读:
    订单管理功能
    商品搜索(关键字模糊搜索、三级分类搜索商品)
    通用脱敏工具类
    商品评论分页查询
    winrar激活
    认识position=fixed
    关于div的居中的问题
    关于图像在网页中显示白边的现象
    jquery 禁止页面滚动-移动端
    chrome 41 空格 &nbsp;
  • 原文地址:https://www.cnblogs.com/afish/p/3944444.html
Copyright © 2011-2022 走看看