dede调用文章上一篇下一篇时去掉上一篇下一篇文

查看次数:  编辑:sorry404  时间:2014-05-09 23:55

织梦dedecms上一篇下一篇调用标签:
{dede:prenext get='pre'/}
{dede:prenext get='next'/}
如何自定义织梦dedecms上一篇下一篇标签调用内容呢,例如修改为仅调用上一篇下一篇的链接呢:
找到include目录下的这个文件:arc.archives.class.php
找到这几行:
$this->PreNext['pre'] = "上一篇:{$preRow['title']} ";
$this->PreNext['pre'] = "上一篇:没有了";
$this->PreNext['next'] = "下一篇:{$nextRow['title']} ";
$this->PreNext['next'] = "下一篇:没有了 ";
分别替换为以下几行:
$this->PreNext['pre'] = "$mlink";
$this->PreNext['pre'] = "javascript:window.alert('上一篇:没有了');";
$this->PreNext['next'] = "$mlink";
$this->PreNext['next'] = "javascript:window.alert('下一篇:没有了');";