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

shape
shape
shape
shape
shape
shape
shape
shape
dedecms标签大全 非常经典的织梦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(http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachy-m-dhttp://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.http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach imgwidth=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach定义图片宽度http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach imgheight=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach高度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.attachyeshttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach]
$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)http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach/}

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

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

文章时间:{dede:field.pubdate function=”MyDate(http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachY-m-d H:ihttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach,@me)”/}

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

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

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

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

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

点击量:
———————————————————————————————–
channel|频道标签:

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

基本语法:
{dede:channel type=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachtophttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach8http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach currentstyle=”

  • ~typename~
  • “}

  • [field:typename/]

  • {/dede:channel}

    参数说明:
    typeid = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach0http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 栏目ID
    reid = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach0http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 上级栏目ID
    row = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach100http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 调用栏目数
    col = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach1http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 分多少列显示(默认为单列)
    type = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachson | sunhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach son表示下级栏目,self表示同级栏目,top顶级栏目
    currentstyle = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://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.attachtophttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach}
    [field:typename/]
    {/dede:channel}

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

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

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

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

    {dede:arclist row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach10http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach titlelen=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach24http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachpubdatehttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach idlist=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach col=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach2http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach}
    ?[field:textlink/]([field:pubdate function=MyDate(http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachm-dhttp://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.attach10http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 返回文档列表总数
    typeid=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 栏目ID,在列表模板和档案模板中一般不需要指定,在首页模板中允许用”,”分开表示多个栏目;
    getall=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach1http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 在没有指定这属性的情况下,在栏目页、文章页模板,不会获取以”,”分开的多个栏目的下级子类
    titlelen = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach30http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 标题长度 等同于titlelength
    infolen=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach160http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 表示内容简介长度 等同于infolength
    imgwidth=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach120http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 缩略图宽度
    imgheight=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach90http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 缩略图高度
    listtype=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachallhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 栏目类型 image含有缩略图 commend推荐
    orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachsortrankhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 文档排序方式
    § orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhothttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 或 orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachclickhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 表示按点击数排列
    § orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachsortrankhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 或 orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachpubdatehttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 按出版时间排列
    § orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachnearhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach
    § orderby==http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachlastposthttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 按最后评论时间
    § orderby==http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachscoreshttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 按得分排序
    § orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachidhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 按文章ID排序
    § orderby=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachrandhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 随机获得指定条件的文档列表
    keyword=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 含有指定关键字的文档列表,多个关键字用”,”分
    innertext = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 单条记录样式
    aid=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 指定文档ID
    idlist =http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://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,记录数http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach (起始ID从0开始)表示限定的记录范围(如:limit=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach1,2http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 表示从ID为1的记录开始,取2条记录)
    flag = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]
    noflag = http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachhttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 同flag,但这里是表示不包含这些属性
    orderway=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachdeschttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach 值为 desc 或 asc ,指定排序方式是降序还是顺向排序,默认为降序
    subday=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach天数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,字段http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach
    如:
    {dede:arclist addfields=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attachfiletype,language,softtypehttp://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach row=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach8http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach channelid=http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach3http://www.moke8.com/data/attachment/portal/201701/01/180812a16s6e0kc61ps6b4.attach}
    [field:textlink /] – [field:softtype /]

    {/dede:arclist}

    底层模板字段:

    发表评论