本站资源均来自互联网,仅供学习与参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
Copyright @ 2015-2020 织梦园 版权所有
Power by DedeCms
鲁ICP备15039853号-1
鲁公网安备 37132302000249号
模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
首先找到网站根目录/include/ arc.listview.class.php
这里以列表首页显示6条,其他列表页显示9条为例,即
模板页标签{dede:list pagesize="6"}{/dede:list}
$this->PageSize = 6
1.找到函数ParseDMFields
在里面找
修改为:
2.找到
改为
if($ctag->GetName()=="list") { $limitstart = ($this->PageNo-1) * $this->PageSize; $row = $this->PageSize; |
修改为:
if($ctag->GetName()=="list") { $limitstart = ($this->PageNo-1) * $this->PageSize; if($this->PageNo>2) { $limitstart = ($this->PageNo-1) * ($this->PageSize+3)-3; } $row = $this->PageSize; if($this->PageNo>1) { $row = $this->PageSize+3; } |
2.找到
$totalpage = ceil($this->TotalResult/$this->PageSize);//总共有两处分别为静态和动态 |
改为
$totalpage = ceil(1+($this->TotalResult-$this->PageSize)/($this->PageSize+3)); |