温馨提醒
如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
本文最后更新于2020年9月15日,已超过 30天没有更新
首先找到网站根目录/include/ arc.listview.class.PHP
这里以列表首页显示6条,其他列表页显示9条为例,即
模板页标签{dede:list pagesize="6"}{/dede:list}
$this->PageSize = 6
1.找到函数ParseDMFields
在里面找
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));
版权声明:原创作品,未经允许不得转载,否则将追究法律责任。
本站资源有的自互联网收集整理,如果侵犯了您的合法权益,请联系本站我们会及时删除。
本站资源仅供研究、学习交流之用,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担。
本文链接:悟空资源网https://www.wkzyw.com/1003.html
许可协议:《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权
本站资源有的自互联网收集整理,如果侵犯了您的合法权益,请联系本站我们会及时删除。
本站资源仅供研究、学习交流之用,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担。
本文链接:悟空资源网https://www.wkzyw.com/1003.html
许可协议:《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权
评论0+