首先找到網(wǎng)站根目錄/include/ arc.listview.class.PHP
這里以列表首頁顯示6條,其他列表頁顯示9條為例,即
模板頁標(biāo)簽{dede:list pagesize="6"}{/dede:list}
$this->PageSize = 6
1.找到函數(shù)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;
}
$totalpage = ceil($this->TotalResult/$this->PageSize);//總共有兩處分別為靜態(tài)和動(dòng)態(tài)改為
$totalpage = ceil(1+($this->TotalResult-$this->PageSize)/($this->PageSize+3));
新聞熱點(diǎn)
疑難解答
圖片精選