标签:dedecms
1、打开/include/arc.archives.class.php ,查找 $this->PreNext[‘pre‘] //约813行
在其下一行插入:
$this->PreNext[‘preurl‘] = "$mlink"; //上一篇链接地址
$this->PreNext[‘prename‘] = "{$preRow[‘title‘]}"; //上一篇文章标题
2、查找 $this->PreNext[‘next‘] //约832行
在其下一行插入:
$this->PreNext[‘nexturl‘] = "$mlink"; //上一篇链接地址
$this->PreNext[‘nextname‘] = "{$nextRow[‘title‘]}"; //上一篇文章标题
3、查找 else if($gtype==‘preimg‘){
在其下方插入:
else if($gtype==‘preurl‘){
$rs = $this->PreNext[‘preurl‘];
}
else if($gtype==‘prename‘){
$rs = $this->PreNext[‘prename‘];
}
else if($gtype==‘nexturl‘){
$rs = $this->PreNext[‘nexturl‘];
}
else if($gtype==‘nextname‘){
$rs = $this->PreNext[‘nextname‘];
}
在模板中调用时,使用{dede:prenext get=‘prename‘/}的形式来获得相应数据
标签:dedecms
原文地址:http://taoyouth.blog.51cto.com/2793776/1956354