找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 687|回复: 0

织梦模板文章页分页控制方法

[复制链接]
发表于 2012-4-18 10:52:18 | 显示全部楼层 |阅读模式
在有的文章中,页数几十页,一看文章页面,页数显示那里变形了。怎么解决这个问题呢?
现在我以显示7页为例:
找到include/arc_archives.class.php文件
找到GetPagebreakDM(获得动态页面分页列表)


   
        
            
            
1
2
3
4
5
6
7
8
9
10
11
12
13
14

            
            
            //在for($i=1;$i= $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=1;$i<=$totalPage;$i++) 修改成for($i;$i<=$total_list;$i++)
            
        
   


在GetPagebreak(获得静态页面分页列表)中修改方法跟上面的一样的,然后保存文件。完成了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|要学吧论坛

GMT+8, 2026-1-24 06:34 , Processed in 0.027879 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表