给dede文章分页标题加上标题序号
2009-4-17 |发布:17n | |分类:傻傻的IT | 评论:0 | 引用:0 | 浏览:
修改文件:/include/arc.archives.class.php
大概在356行.找到以下文件替换.
//循环生成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,还原标题
}
}

本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。 添加到网摘:
随机文章
热门评论
我有话说
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

修改文件:/include/arc.archives.class.php大概在356行.找到以下文件替换.