首先找到網站根目錄/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));以上就是織夢系統中列表頁顯示條數不同的解決方法的全部內容,希望對大家的學習和解決疑問有所幫助,也希望大家多多支持武林網。
新聞熱點
疑難解答