织梦dedecms最新版手机端网站上一篇下一篇链接错误的解决方法
打开 \include\arc.archives.class.php 文件 首先查找:
$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";在这段代码后面增加:
$this->PreNext['prem'] = "上一篇:<a href='view.php?aid={$preRow['id']}'>{$preRow['title']}</a> ";继续查找:
$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";在这段代码后面增加:
$this->PreNext['nextm'] = "下一篇:<a href='view.php?aid={$preRow['id']}'>{$nextRow['title']}</a> ";继续往下查找:
else if($gtype=='nextimg'){ $rs = $this->PreNext['nextimg']; }在这段代码后面增加:
else if($gtype=='prem'){ $rs = $this->PreNext['prem']; } else if($gtype=='nextm'){ $rs = $this->PreNext['nextm']; }
手机版本专用调用标签
手机版上一篇调用代码:
{dede:prenext get='prem'/}手机版下一篇调用代码:
{dede:prenext get='nextm'/}
有需要的朋友可以去试一下,希望跟版网的这个教程能为您带来帮助,感谢大家都跟版网的支持。