相信很多人都看了这个文章,现在网上转载最多的也是这种方法,可是本人测试,无法实现正常翻页效果。下面说一下我自己测试的织梦方向键实现上一页下一页翻页实现方法。
- 一、修改arc.archives.class.php,使得{dede:prenext get='pre'/}、{dede:prenext get='next'/}可以直接调用上一篇、下一篇文章的网址。方法如下:
找到include目录下的这个文件:arc.archives.class.php
找到这几行:
$this->PreNext['pre'] = "上一篇:{$preRow['title']} ";
$this->PreNext['next'] = "下一篇:{$nextRow['title']} ";
分别替换为以下几行:
$this->PreNext['pre'] = "$mlink";
$this->PreNext['next'] = "$mlink";
上一篇
<div style="-webkit-transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear; transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear; margin: 0px; padding: 0px; border: 0px; font-family: Verdana, 宋体; font-size: 14px; line-height: 28px; vertical-align: baseline; color: rgb(102, 102, 102);"> |
|