DedeCMS文章分页题目加上序号方法
经过减少一句代码,可认为dedecmsV53文章加上序号。方便阅读者浏览。 修正文件:/include/arc.archives.class.php 行数:347行 (行数能够因为更新有变化) 修正代码如下: //循环生成HTML文件 else { for($i=1;$i=$this-TotalPage;$i++) { $tempTitle=$this
DedeCMS文章分页题目加上序号方法
经过减少一句代码,可认为dedecmsV53文章分页题目加上序号。方便阅读者浏览。
修正文件:/include/arc.archives.class.php
行数:347行 (行数能够因为更新有变化)
修正代码如下:
//循环生成HTML文件
else
{
for($i=1;$i<=$this->TotalPage;$i++)
{
$tempTitle=$this->Fields['title'];//暂时存储一个题目正本
if($i>1)
{
$truefilename = $this->GetTruePath().$fileFirst."_".$i.".".$this->ShortName;
//为分页题目加上序号。2009.2.13
$this->Fields['title'] = $this->Fields['title'].'('.$i.')';//在题目前面多加个序号
}
else
{
$truefilename = $this->GetTruePath().$filename;
}
$this->ParseDMFields($i,1);
$this->dtp->SaveTo($truefilename);
$this->Fields['title']=$tempTitle;//生成html,复原题目
}
}
分享到:
本文"DedeCMS文章分页题目加上序号方法"由蚂蚁部落站长搜集整顿而来,仅供大家学习与参考利用。更多网站制造教程尽在蚂蚁部落站长站。
顶一下
(0)
0%
踩一下
(0)