第一、栏目url标准化
当我用dede建了分类了时候,发现在栏目是带index.html的。
修改前:/abc/index.html
修改后:/abc/
打开文件:include/channelunit.func.php
大概在171行
$reurl = $typedir.'/'.$defaultname;
修改成: $reurl = $typedir.'/';
5.5版本不存在这个问题。
第二、栏目标题美化,去掉栏目斜杠。
修改前:顶级栏目 / 一级栏目
修改后:一级栏目 - 顶级栏目
打开文件:templetsdefaultlist_*.htm
将
修改成:
第三、文章分页标题添加序号
修改前:标题、标题、标题
修改后:标题、标题(2)、标题(3)
打开文件:include/arc.archives.class.php
大概在347行修改成以下代码:
//循环生成HTML文件
else
{
for($i=1;$i<=$this->TotalPage;$i++)
{
$tempTitle=$this->Fields['title'];//临时存储一个标题副本 2009.10.28
if($i>1)
{
$truefilename = $this->GetTruePath().$fileFirst."_".$i.".".$this->ShortName;
$this->Fields['title'] = $this->Fields['title'].'('.$i.')';//在标题后面多加个序号 2009.10.28
}
else
{
$truefilename = $this->GetTruePath().$filename;
}
$this->ParseDMFields($i,1);
$this->dtp->SaveTo($truefilename);
$this->Fields['title']=$tempTitle;//生成html,还原标题 2009.10.28
}
}
第四、文章看完了不要忘记了做相关文章推荐哦。
自动关连文档标签引用:
- 关于{dede:field.title/},其他人还感兴趣的是:
- [field:title/]
dede:likearticle row='6' titlelen='42' orderby=rand}
{/dede:likearticle}
这些问题相信用dedecms的站长遇到的比较多吧,希望对新手有所帮助,另外还有其他细节就不多说了。