您好,欢迎来到12图资源库!分享精神,快乐你我!我们只是素材的搬运工!!
  • 首 页
  • 当前位置:首页 > 网站教程 > dede教程 >
    arclist|文档列表标签
    时间:2016-07-10 13:17 来源:网络整理 作者:12图资源库 浏览:收藏 挑错 推荐 打印

    arclist|文档列表标签

    [标签名称]

    Arclist

    [标签简介]

    织梦常用标记,也称为自由列表标记,其中imglist、imginfolist、specart、coolart、autolist都是由该标记所定义的不同属性延伸出来的别名标记。

    [功能说明]

    获取指定文档列表

    [适用范围]

    全局使用

    [参数说明]

    col='2'   分多少列显示(默认为单列),以下通过实例展示多列显示:

     

    {dede:arclist row='10' titlelen='24' orderby='pubdate' col='2'}

    [field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br/>

    {/dede:arclist}

    输出如下图:

    arclist|文档列表标签

    当col>1将使用原来的table多列方式显示,当然我们也可以使用DIV来实现

    row='10'   返回文档列表总数

    typeid=' 栏目ID,在首页模板中允许用”,”分开表示多个栏目,在列表页与内容页需要使用getall属性才能获取下级子类。在列表中可以不指定;

    getall='1'  在没有指定这属性的情况下,在栏目页、文章页模板,不会获取以”,”分开的多个栏目的下级子类

    titlelen = '30'   标题长度等同于titlelength

    infolen='160'  表示内容简介长度等同于infolength(只控制infos,并不控制description的内容)

    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 = ''  含有指定关键字的文档列表,多个关键字用”,”分开

    innertext = ''  单条记录样式

    aid= ' '   指定文档ID

    idlist = ''  提取特定文档(文档ID),多个ID用”,”分开

    channelid  频道ID

    limit='起始ID,记录数'  (起始ID从0开始)表示限定的记录范围(如:limit='1,2' 表示从ID为1的记录开始,取2条记录)

    flag = 'h'  自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]

    noflag ='h'   同flag,但这里是表示不包含这些属性

    orderway='desc'  值为desc 或asc ,指定排序方式是降序还是顺向排序,默认为降序

    subday='天数'  表示在多少天以内的文档

    [底层模板字段]

     

    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 href='arcurl'>title</a>

    typelink = <a href='typeurl'>typename</a>

    imglink=<a href='arcurl'><img src='picname' border='0' width='imgwidth' height='imgheight'></a>

    image = <img src='picname' border='0' width='imgwidth' height='imgheight'

    调用栏目ID为4,文档属性为头条,排序方式为发布时间的10条记录:

    arclist|文档列表标签

    [相关标记]

    (责任编辑:admin)