dedecms标签大全 非常经典的织梦dedecms标签

2017-03-27 20:09:16 dedecms

常用的一些标签,大家可以用ctrl+F实现搜索。

网站名称:{dede:global.cfg_webname/}

网站根网址:{dede:global.cfg_basehost/}

网站根目录:{dede:global.cfg_cmsurl/}

网页主页链接:{dede:global.cfg_indexurl/}

网站描述:{dede:global.cfg_description/}

网站关键字:{dede:global.cfg_keywords/}

模板路径:{dede:global.cfg_templets_skin/}

调用页面:{dede:include filename="head.htm"/}

网站编码:{dede:global.cfg_soft_lang/}
-----------------------------------------------------------------------------------------------
调用时间:[field:pubdate function=MyDate(://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach,@me)/]

调用缩略图:
{dede:arclist row=10 orderby=pubdate type=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachimage. imgwidth=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach定义图片宽度 imgheight=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach高度}
[field:image/]
{/dede:arclist}

调用缩略图原图:
[field:litpic runphp=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachyes]
$youjoys = array("-lp", "_lit");
@me = str_replace ($youjoys, "", @me);
[/field:litpic]

调用单个栏目:
{dede:type}
[field:typename /]
{/dede:type}
-----------------------------------------------------------------------------------------------
文章标题:{dede:field.title/}

文章描述:{dede:field.description function=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachHTML2text(@me)}

文章关键词:{dede:field.keywords/}

当前位置:{dede:field name=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachposition}

文章时间:{dede:field.pubdate function="MyDate( H:i,@me)"/}

文章来源:{dede:field.source/}

文章作者:{dede:field.writer/}

文章内容:{dede:field.body/}

上一篇:{dede:prenext get=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachpre}

下一篇:{dede:prenext get=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachnext}

点击量:
-----------------------------------------------------------------------------------------------
channel|频道标签:

标签名称:channel
标记简介:织梦常用标记,通常用于网站顶部以获取站点栏目信息,方便网站会员分类浏览整站信息
功能说明:用于获取栏目列表
适用范围:全局使用

基本语法:
{dede:channel type=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachtop row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach8 currentstyle="

~typename~

"}

[field:typename/]


{/dede:channel}

参数说明:
typeid = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 栏目ID
reid = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 上级栏目ID
row = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 调用栏目数
col = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 分多少列显示(默认为单列)
type = | sun son表示下级栏目,self表示同级栏目,top顶级栏目
currentstyle = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 应用样式

底层模板字段:
ID(同 id),typeid, typelink, typename, typeurl,typedir(仅表示栏目的网址)

[field:id/]
[field:typeid/]
[field:typelink/] 调用栏目名称,点击直接跳转该栏目列表
[field:typename/] 调用栏目名称,无链接
[field:typeurl/]
[field:typedir/]

例:
{dede:channel type=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachtop}
[field:typename/]
{/dede:channel}

注:在没有指定typeid的情况下,type标记与模板的环境有关,如,模板生成到栏目一,那么type=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachson就表示栏目一的所有子类
--------------------------------------------------------------------------------------------
arclist|文档列表:

标签名称:arclist
标记简介:织梦常用标记,也称为自由列表标记,其中imglist、imginfolist、specart、coolart、autolist都是由该标记所定义的不同属性延伸出来的别名标记。
功能说明:获取指定文档列表
适用范围:全局使用

基本语法:
{dede:arclist flag=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachh typeid=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach col=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach titlelen=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach infolen=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach imgwidth=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach imgheight=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach listtype=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach keyword=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach limit=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach0,1}
[field:title/]
{/dede:arclist}

参数说明:
col=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 分多少列显示(默认为单列),5.3版中本属性可以通过多种方式进行多行显示
如果col=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach1要多列显示的可用div+css实现
以下为通过div+css实现多列的示例:

{dede:arclist row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach10 titlelen=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach24 orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachpubdate idlist=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach col=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach2}
?[field:textlink/]([field:pubdate function=MyDate(://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach,@me)/])

{/dede:arclist}
当col>1将使用原来的table多列方式显示
row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach10 返回文档列表总数
typeid=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 栏目ID,在列表模板和档案模板中一般不需要指定,在首页模板中允许用","分开表示多个栏目;
getall=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach1 在没有指定这属性的情况下,在栏目页、文章页模板,不会获取以","分开的多个栏目的下级子类
titlelen = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 标题长度 等同于titlelength
infolen=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach160 表示内容简介长度 等同于infolength
imgwidth=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach120 缩略图宽度
imgheight=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach90 缩略图高度
listtype=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachall 栏目类型 image含有缩略图 commend推荐
orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachsortrank 文档排序方式
§ orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhot 或 orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachclick 表示按点击数排列
§ orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachsortrank 或 orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachpubdate 按出版时间排列
§ orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachnear
§ orderby==http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachlastpost 按最后评论时间
§ orderby==http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachscores 按得分排序
§ orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachid 按文章ID排序
§ orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachrand 随机获得指定条件的文档列表
keyword=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 含有指定关键字的文档列表,多个关键字用","分
innertext = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 单条记录样式
aid=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 指定文档ID
idlist =http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 提取特定文档(文档ID)
channelid 频道ID
limit=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach起始ID,记录数 (起始ID从0开始)表示限定的记录范围(如:limit=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach1,2 表示从ID为1的记录开始,取2条记录)
flag = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]
noflag = ://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 同flag,但这里是表示不包含这些属性
orderway=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachdesc 值为 desc 或 asc ,指定排序方式是降序还是顺向排序,默认为降序
subday=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach天数 表示在多少天以内的文档


用arclist调用于附加表字段的方法:

要获取附加表内容,必须符合两个条件
1、指定 channelid 属性
2、指定要获得的字段 addfields=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach字段1,字段
如:
{dede:arclist addfields=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachfiletype,language,softtype row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach8 channelid=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach3}
[field:textlink /] - [field:softtype /]

{/dede:arclist}

底层模板字段: