VIP福利
主页 > 建站问题 > DEDECMS标签代码List标记的说明与用法

DEDECMS标签代码List标记的说明与用法

【List 标记】 功能说明:表示列表模板里的分页内容列表 适用范围:仅列表模板 list_*.htm (1)基本语法 {dede:list col='' titlelen='' infolen='' imgwidth='' imgheight='' orderby='' pagesize=''}{/dede:list} (2)属性 [1]col 内容列数 [2]titlelen 标题 […]



【List 标记】 
功能说明:表示列表模板里的分页内容列表 
适用范围:仅列表模板 list_*.htm

(1)基本语法
{dede:list col='' titlelen='' infolen='' imgwidth='' imgheight='' orderby='' pagesize=''}{/dede:list} 
(2)属性
[1]col 内容列数
[2]titlelen 标题长度
[3]infolen 内容摘要长度
[4]imgwidth 缩略图
[5]imgheight 缩略图高
[6]orderby 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum ,默认为 sortrank 
[7]pagesize 分页大小

(3)底层模板变量 
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

注:list标记除了支持档案表的基本模板变量外,还支持附加表的字段,你可以在模型管理中知道附加表支持列表使用的字段有哪些。
说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!