织梦dedecms手机版上下篇链接错误的解决方法

打开 \include\arc.archives.class.php 

1. 找到 $this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";

下面添加 $this->PreNext['prem'] = "上一篇:<a href='view.php?aid={$preRow['id']}'>{$preRow['title']}</a> ";

 

2. 找到 $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";

下面添加 $this->PreNext['nextm'] = "下一篇:<a href='view.php?aid={$preRow['id']}'>{$nextRow['title']}</a> ";

 

3. 找到 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'/}

 

posted @ 2018-03-05 15:46  bubuchu  阅读(299)  评论(0编辑  收藏  举报