织梦免费模板多吗_帝国cms和织梦对比

织梦免费模板多吗_帝国cms和织梦对比,第1张

织梦免费模板多吗_帝国cms和织梦对比 织梦dede中列表页显示条数不同的解决方法首先找到网站根目录/include/ arc.listview.class.php这里以列表首页显示6条,其他列表页显示9条为例,即模板页标签{dede:list pagesize=”6″}{/dede:list}$this->PageSize = 61.找到函数ParseDMFields在里面找1if($ctag->GetName()==”list”)2 {3 $limitstart = ($this->PageNo-1) * $this->PageSize;4 $row = $this->PageSize;修改为:01if($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));

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/650200.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-17
下一篇 2022-04-17

发表评论

登录后才能评论

评论列表(0条)

保存