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

 2026-11-14 00:10:11  阅读 27  评论 0

摘要:  织梦dede中列表页显示条数不同的解决方法首先找到网站根目录/include/ arc.listview.class.php  这里以列表首页显示6条,其他列表页显示9条为例,即  模板页标签{dede:list pagesize=”6″}{/dede:list}  $this->PageSize = 6  1.找到函数ParseDMFields  在里面

  织梦dede中列表页显示条数不同的解决方法首先找到网站根目录/include/ arc.listview.class.php

  这里以列表首页显示6条,其他列表页显示9条为例,即

  模板页标签{dede:list pagesize=”6″}{/dede:list}

  $this->PageSize = 6

  1.找到函数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://utv.soxj.com/news/18930.html

标签:

发表评论:

管理员

  • 内容20662
  • 积分0
  • 金币0
相关分类

Copyright © 2022 搜百网 Inc. 保留所有权利。 Powered by LECMS 3.0.3

页面耗时0.0201秒, 内存占用1.6 MB, 访问数据库15次