织梦Dedecms的默认页面中有个list_article.htm页面,这是dede的列表页面。在列表页显示文章的列表,是通过dede的list和pagelist这两个个标签实现的。本文就这两个标签的使用及pagelist的样式进行下详细的说明。 首先介绍下list标签的参数及使用方法: 标签名称:list 功能说明:表示列表模版里的分页内容列表 使用范围:仅列表页模版 list_*.htm 基本语法:{dede:list col=” titlelen=” infolen=” imgwidth=” listtype=” orderby=” pagesize=” orderway=”}{/dede:list} 参数说明: col=” 内容列数 titlelen=” 标题长度 infolen=” 内容摘要长度 imgwidth=” 缩略图宽度 imgheight=” 缩略图高度 orderby=” 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum,默认为sortrank pagesize=’20’ 分页大小 底层模版字段: 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]...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|