1. 程式人生 > >織夢dedecms手機版上下篇鏈接錯誤的解決方法

織夢dedecms手機版上下篇鏈接錯誤的解決方法

his else if body bsp AI view pos tle IT

打開 \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‘){ 2 $rs = $this->PreNext[‘nextimg‘]; 3 }

後面添加

else if($gtype==‘prem‘){ $rs = $this->PreNext[‘prem‘]; } else if($gtype==‘nextm‘){ $rs = $this->PreNext[‘nextm‘]; }

修改完畢,手機版調用:

上一篇 {dede:prenext get=‘prem‘/}

下一篇 {dede:prenext get=‘nextm‘/}

織夢dedecms手機版上下篇鏈接錯誤的解決方法