首先找到网站根目录/include/ arc.listview.class.php
这里以列表首页显示6条,其他列表页显示9条为例,即
模板页标签{dede:list pagesize=”6″}{/dede:list}
$this->PageSize = 6
1.找到函数ParseDMFields

在里面找

1 if($ctag->GetName()=="list")
2  {
3  $limitstart = ($this->PageNo-1) * $this->PageSize;
4  $row = $this->PageSize;

修改为:

01 if($ctag->GetName()=="list")
02  {
03  $limitstart = ($this->PageNo-1) * $this->PageSize;
04  if($this->PageNo>2)
05 {
06  $limitstart = ($this->PageNo-1) * ($this->PageSize+3)-3;
07  }
08  $row = $this->PageSize;
09  if($this->PageNo>1)
10 {
11  $row = $this->PageSize+3;
12  }

2.找到

1 $totalpage = ceil($this->TotalResult/$this->PageSize);//总共有两处分别为静态和动态

改为

1 $totalpage = ceil(1+($this->TotalResult-$this->PageSize)/($this->PageSize+3));
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。