主题 : 关于[#list tag_pagination.list as content] 的问题 |
级别: 解元
|
1# 发表于:2014-05-05 11:37:56 IP:115.107.*.*
|
||||
---|---|---|---|---|---|
级别: 状元
|
2# 发表于:2014-05-05 11:42:22 IP:182.9.*.*
tag_pagination.list表示的是jc_content表
参数:sysPage 作用:对页面显示出来的记录进行分页 是否为内容分页。1:内容分页;0:栏目分页。默认栏目分页。 这个分页标签使用一般是跟其他标签一起使用的,一般和一些列表标签一起使用。 示例 [@cms_pagination sysPage='1'/] 效果: 和别的标签一起使用示例: <div class="pagebar"> [@cms_comment_page contentId=contentId count='6' orderBy='1'] <dl class="rmpl"> [#if tag_pagination.list?size = 0] <dt><span>暂无相关评论!</span></dt> [#else] [#list tag_pagination.list as c] <dt><span>${(c.commentUser.username)!"匿名网友"}</span> 于 ${c.createTime} 评论道:</dt> <dd>${c.textHtml!}</dd> <dd class="line"></dd> [/#list] <div class="pagebar">[@cms_pagination sysPage='1'/]</div> [/#if] </dl> [/@cms_comment_page] </div> |
||
---|---|---|---|
1
共1页