首页 » 资讯 » 生活常识 » 正文

织梦帝国是什么(织梦和帝国哪个好)

放大字体  缩小字体 发布日期:2022-12-07  来源:互联网  作者:麻布岗信息网  浏览次数:110
导读

今天有麻布岗信息网小编为大家分享以下内容: 织梦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

今天有麻布岗信息网小编为大家分享以下内容:

织梦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));

麻布岗信息网(www.517338.com)综合在线信息,汇聚城市生活,美食,购物,旅游,房产,交通,家居,财经,教育,健康,娱乐,历史,汽车,生活消费门户网站

 
关键词: 帝国 免费模板 cms
 
打赏
免责声明
• 
本文为小编原创作品,作者: 小编。欢迎转载,转载请注明原文出处:http://www.517338.com/news/show-45536.html 。本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们。