<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms修改“上一篇:没有了”和“下一篇:没有了”的显示内容

时间:2020-12-21

在dedecms5.7中, 对于特别客户的要求,有一些个性化的需求,比如修改“上一篇:没有了”和“下一篇:没有了”的显示内容,有的想去掉,有的想改为别的,这里修改成“Previous: No”及“Next: No”,或是改成任何我们希望能实现的样式及文字,哪么我们应该如何实现呢?

这个时候,我们需要通过修改include/arc.archives.class.php文件,来实现我们个性化的功能需求,打开文件。

查找
大概在813行:

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

修改为:

$this->PreNext['pre'] = "Previous: <a href='$mlink'>{$preRow['title']}</a> ";

查找
大概在818行:

$this->PreNext['pre'] = "上一篇:没有了 ";

修改为:

$this->PreNext['pre'] = "Previous: No";

查找
大概在815行:
$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
修改为:

$this->PreNext['next'] = "Next: <a href='$mlink'>{$nextRow['title']}</a> ";

查找
大概在830行:
$this->PreNext['next'] = "下一篇:没有了 ";
修改为:
$this->PreNext['next'] = "Next: No ";

保存文件,重新生成相对应的文章内容,已经达到我们需要的效果啦!截图如下:

如果想去掉的话,直接把$this->PreNext['next'] = "上一篇:没有了 ";改为$this->PreNext['next'] = "";下一篇也是这样操作。方法很简单吧。

0
首页
案例
关于
联系