dede 手机模板 上一篇下一篇 链接错误问题解决办法
打开 \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={$nextRow['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'];
}
查找
if ( defined('DEDEMOB') )
{
$mlink = 'view.php?aid='.$preRow['id'];
{
$mlink = 'view.php?aid='.$preRow['id'];
改成
if ( defined('DEDEMOB') )
{
$mlink = 'view.php?aid='.$nextRow['id'];
{
$mlink = 'view.php?aid='.$nextRow['id'];
手机版本专用调用标签
手机版上一篇调用代码:{dede:prenext get='prem'/}
手机版下一篇调用代码:{dede:prenext get='nextm'/}