<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

Dedecms织梦:pagebreak 分页控制数量

时间:2020-12-16

很多织梦Dedecms建站的朋友会碰到这样的问题,想让内容页分页的样式变成和列表一样的效果,可以控制条数,可以不显示那么多页面,如何解决?
 
织梦Dedecms内容里分页很多,分页的地方显示很多,很不美观,做板子的时候遇到这个问题,百度了一下,发现不少朋友也都在为文章内容页pagebreak分页数太多烦恼,那么能不能控制Dedecms文章内容分页{dede:pagebreak/}显示页数呢? 答案是能 !
 
下面说一下织梦Dedecms文章内容分页{dede:pagebreak/}显示页数设置方法 。
到include/arc_archives.class.php文件
 
查找 for($i=1;$i<=$totalPage;$i++)
 
替换为:
 
$total_list=7; //显示7个,3*2+1=7 
if($nowPage >= $total_list) { 
$i = $nowPage-3; //前后6个,(7-1)/ 2=3 
$total_list = $nowPage+3; //前后3个,(7-1)/ 2=3 
if($total_list >= $totalPage) 
$total_list = $totalPage; 
}else{ 
$i=1; 
if($total_list >= $totalPage) 
$total_list = $totalPage; 
for($i;$i<=$total_list;$i++) 
0
首页
案例
关于
联系