DEDECMS中,list标签和pagelist标签

时间:2023-03-08 23:46:25
DEDECMS中,list标签和pagelist标签

列表数据标签:dede:list

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

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标签和pagelist标签

列表分页标签 dede:pagelist

{dede:pagelist listsize='3' listitem=''/}

listsize=3 表示 [1][2][3] 这些项的长度 x 2

listitem='index,pre,pageno,next,end,option' 表示页码样式,可以把下面的值叠加

index  首页

pre 上一页

pageno 页码

next 下一页

end 末页

option 下拉跳转框

DEDECMS中,list标签和pagelist标签