dede的List标记

时间:2014-07-17

dede的默认页面中有个list_article页面,这是dede的列表页面。

在页面中显示的是文章的列表,这个文章列表是通过dede的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标记除了支持档案表的基本模板变量外,还支持附加表的字段,你可以在模型管理中知道附加表支持列表使用的字段有哪些。

上一条:织梦DedeCMS添加自定义内容模型 前台居然读不出来值 下一条:dede自定义字段用在列表页里 list标记

相关文章

最新文章