dedecms教程织梦修改上一篇、下一篇文字字数的方法!织梦教程修改上一篇、下一篇文字字数的方法
操作步骤
打开 /include/arc.archives.class.php
文件
找到
$this->PreNext['pre']="上一篇:{$preRow['title']}";
在其上面添加
$preRow['title']=cn_substr($preRow['title'],30);
找到
$this->PreNext['next']="下一篇:{$nextRow['title']}";
在其上面添加
$nextRow['title']=cn_substr($nextRow['title'],30);
解析:只需修改后来添加代码中的30即可,30的意思就是30个字节,GBK的话是15个汉字,UTF8的话是10个汉字。这个可以根据实际情况,自行设定。
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明。
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明。