dede的channel标签有关问题

WBOY
Release: 2016-06-13 13:50:22
Original
940 people have browsed it

dede的channel标签问题
{dede:channel type='top' typeid='1,3,7' row='6' currentstyle="

  • ~typename~
  • "}
  • [field:typename/]

  • {/dede:channel}

    为什么typeid没有作用? 求解决方法,只想要top顶级栏目的制定的typeid,我用的是5.6的。感激不尽!!!

    ------解决方案--------------------
    {dede:channel type='top' typeid='1,3,7' row='6'} currentstyle="
  • ~typename~
  • "
  • [field:typename/]

  • {/dede:channel}
    ------解决方案--------------------
    {dede:channel type='top' typeid='1,3,7' row='6' }
    总共就三个id 你还要取6行!!!!!!
    ------解决方案--------------------
    直接这样{dede:channel typeid='1,3,7'}
  • [field:typename/]

  • {/dede:channel}

    ------解决方案--------------------
    【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' 表示同级栏目 
    其中后两个属性必须在列表模板中使用。 
    (3)底层模板变量 
    ID,typename,typedir,typelink(仅表示栏目的网址) 
    例:
    {dede:channel type='top'}
    [field:typename/] 
    {/dede:channel} 
    注:在没有指定typeid的情况下,type标记与模板的环境有关,如,模板生成到栏目一,那么type='son'就表示栏目一的所有子类

    http://www.dedecms.com/archives/templethelp/help/taghelp.htm
    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!