### [dedecms的全局标签有哪些](https://www.prosaas.cn/article/1368) **Published:** 2019-07-12T08:01:27 **Author:** 5201314 **Excerpt:** dedecms全局标签:channel |频道标签, 功能:用于获取栏目列表(全局使用)基本语法: row =… ![](//zhiqipro.oss-cn-beijing.aliyuncs.com/2023/12/20231212115729184.jpg) dedecms全局标签: channel |频道标签, 功能:用于获取栏目列表(全局使用) 基本语法: {dede:channel type='top' row='8'} \[field:typename/\] {/dede:channel} row = '1'分多少列显示(默认为单列) type = 'son | sun' son表示下级栏目,self表示同级栏目,top顶级栏目 field|常用变量,功能:用于获取特定栏目或者档案的字段值及常用的环境变量值(全局使用) 基本语法: {dede:field name='字段名'/} arclist|文档列表,功能:获取指定文档列表(全局使用) 基本语法: {dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}} \[field:title/\] {/dede:arclist} row='10' 返回文档列表总数 typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在首页模板中允许用","分开表示多个栏目; getall='1' 在没有指定这属性的情况下,在栏目页、文章页模板,不会获取以","分开的多个栏目的下级子类 titlelen = '30' 标题长度 等同于titlelength infolen='160' 表示内容简介长度 等同于infolength imgwidth='120' 缩略图宽度 imgheight='90' 缩略图高度 listtype='all' 栏目类型 image含有缩略图 commend推荐 orderby='sortrank' 文档排序方式 § orderby='hot' 或 orderby='click' 表示按点击数排列 § orderby='sortrank' 或 orderby='pubdate' 按出版时间排列 § orderby='near' § orderby=='lastpost' 按最后评论时间 § orderby=='scores' 按得分排序 § orderby='id' 按文章ID排序 § orderby='rand' 随机获得指定条件的文档列表 keyword='' 含有指定关键字的文档列表,多个关键字用","分 底层模板字段: ID(同 id),typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer, source,litpic(同picname),pubdate,senddate,mid, lastpost,scores,goodpost,badpost,notpost, description(同infos),filename, image, imglink, fulltitle, textlink, typelink,plusurl, memberurl, templeturl, stime(pubdate 的"0000-00-00"格式) 其中: textlink = title typelink = typename imglink = image = ’titile’ 字段调用方法:\[field:varname/\] 如: {dede:arclist infolen='100'} \[field:textlink/\]
\[field:infos/\]
{/dede:arclist} 更多DedeCMS相关技术文章,请访问DedeCMS教程栏目进行学习! 以上就是dedecms的全局标签有哪些的详细内容,更多请关注知企PROSAAS其它相关文章! **Tags:** channel, DEDECMS, 子类 **Categories:** DEDECMS ---