如何修改织梦5.7版上一页下一页文字和长度

分类:建站教程 时间:2024-12-22 18:59 浏览:0 评论:0
0

今天来说下如何修改dedecms分页的下一页和上一页的文字和文字长度!

1.首先到include/arc.archives.class.php

加入红色代码,是用来设置默认获取字数的。当前设置为14个中文字符

//获取上一篇,下一篇链接
function GetPreNext($gtype='',$titlelen=28)


2.再往下找,插入红色部分!即是用截取后的长度赋予$preRow['title2'],那么原始没截取的就是$preRow['title']
$preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']);
$preRow['title2']=cn_substr($preRow['title'],$titlelen);
$this->PreNext['pre'] = "上一篇:
3.接下来就很简单了。做鼠标指上后就能显示完整文章标题。(对SEO很有利)

$preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']); 
$preRow['title2']=cn_substr($preRow['title'],$titlelen); 
$this->PreNext['pre'] = "上一篇: {$preRow['title2']} "; 
4.修改下一篇 如下
$nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']); 
$nextRow['title2']=cn_substr($nextRow['title'],$titlelen); 
$this->PreNext['next'] = "下一篇:{$nextRow['title2']} "; 
如果需要修改文字那我就不说了,直接修改文字即可实现!

1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > 如何修改织梦5.7版上一页下一页文字和长度

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }