dedecms的全局标签有哪些

dedecms全局标签

Channel |频道标签, 功能:用于获取栏目列表(全局使用)

基本语法:

{DEDE:channel type='top' row='8'}
<a> [Field:typename/] </a>
{/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'}} 
<a>[field:title/]</a>
{/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 = <a>title</a>
typelink = <a>typename</a>
imglink = <a><img  alt="dedecms的全局标签哪些" ></a>
image = <img  alt="DedeCms的全局标签有哪些" >
登录后复制

字段调用方法:[field:varname/]

如:

{dede:arclist infolen='100'}
[field:textlink/]
<br>
[field:infos/]
<br>
{/dede:arclist}
登录后复制

更多dedeCMS相关技术文章,请访问Dedecms教程栏目进行学习

以上就是DEDECMS的全局标签有哪些的详细内容,更多请关注慧达AI工具网其它相关文章!

转载请说明出处 内容投诉内容投诉
慧达seo-站长工具-seo工具-采集-发布-AI文章生成发布工具 » dedecms的全局标签有哪些

慧达AI专注站群seo管理工具

查看演示 官网购买