我的知识记录

DedeCMS列表标签 list 获取列表模板中的列表内容

list 列表数据标签

**名称:**list

**功能:**获取列表模板中的列表内容

语法:

{dede:list  col='' titlelen='' infolen=''  imgwidth='' imgheight='' orderby='' pagesize=''}

{/dede:list}

文件:

\include\arc.listview.class.php

\include\arc.sglistview.class.php

function GetArcList($limitstart=0,$row=10,$col=1,$titlelen=30,$infolen=250,

$imgwidth=120,$imgheight=90,$listtype="all",$orderby="default",$innertext="",$tablewidth="100",$ismake=1,$orderWay='desc')

默认底层模板:

list_fulllist.htm

参数:

col=1 内容列数

titlelen=30 标题长度

infolen=250 内容摘要长度

imgwidth=120 缩略图宽

imgheight=90 缩略图高

orderby='default' 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum ,默认为 sortrank

pagesize=20 分页大小

orderway='desc' 排序方式

底层字段:

ID(同 id),title,iscommend,color,typeid,ismake,description(同 info),postnum,lastpost,shorttitle

pubdate,senddate,arcrank,click,litpic(同 picname),typedir,typename,

arcurl(同 filename),typeurl,stime(pubdate 的"0000-00-00"格式),

textlink,typelink,imglink,image

DedeCMS列表标签 list 获取列表模板中的列表内容

标签:

更新时间:2026-03-08 14:04:57

上一篇:帝国cms设置数据库配置信息后提交空白EmpireCMS

下一篇:帝国cms导入一条信息需要写入哪几个表?EmpireCMS