DedeCMS列表标签
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
范例:
{dede:list pagesize='10'}
<li>
[field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
[<b>[field:typelink/]</b>] <a href="[field:arcurl/]" class="title">[field:title/]</a> <span class="info"> <small>日期:</small>[field:pubdate function="GetDateTimeMK(@me)"/] <small>点击:</small>[field:click/] <small>好评:</small>[field:scores/] </span>
<p class="intro"> [field:description/]... </p>
</li>
{/dede:list}
list标签同时也适用单表模型文档列表。
注:list标记除了支持档案表的基本模板变量外,还支持附加表的字段,你可以在模型管理中知道附加表支持列表使用的字段有哪些。
pagelist 列表分页标签
**名称:**pagelist
**功能:**表示分页页码列表
语法:
文件:
\include\arc.listview.class.php
\include\arc.sglistview.class.php
function GetPageListDM($list_len,$listitem="index,end,pre,next,pageno")
function GetPageListST($list_len,$listitem="index,end,pre,next,pageno")
默认底层模板:
无
参数:
listsize=3 表示 [1][2][3] 这些项的长度 x 2
listitem='index,pre,pageno,next,end,option' 表示页码样式,可以把下面的值叠加
index 首页
pre 上一页
pageno 页码
next 下一页
end 末页
option 下拉跳转框
底层字段:
无
范例:
注:pagelist标签是同list一同使用来调用列表数据的。
相关文档
- pbootcms后台内容列表增加阅读量和点赞量自定义修改
- pbootcms模板文章列表没有缩略图时也不显示默认图片
- pbootcms标签分页中url会无限重复叠加的解决方案
- pbootcms模板标签序数从2开始
- PbootCMS授权中文域名方法
- pbootcms模板文章列表序号调用标签
- pbootcms网站标签pboot:list当前文档高亮设置教程
- Pbootcms字段为空调用另一个字段标签代码
- pbootcms列表如何置顶文章,istop不管用怎么办?
- pbootcms基本调用标签大全
- pbootcms详情页常见标签调用
- PBOOTCMS网站程序提示“执行SQL发生错误!错误:DISK...
- pbootcms调用搜索页keyword值数量和标签页tag值和...
- PBOOTCMS判断登录是否登录代码
- pbootcms导航标签从第2个开始调用的方法
- PbootCMS生成的sitemap.xml中增加tag标签链接
- PbootCMS附件上传报错UNKNOW: Code: 8192...
- pbootcms列表用istop置顶文章不管用的解决办法
- PbootCMS后台SEO标题规则设置
- PbootCMS网站常见错误提示总结
上一篇: DedeCMS全局标签
下一篇: DedeCMS内容标签