织梦限制文章页上下篇文章标题字数
作者:king发布时间:2023-05-04分类:CMS教程浏览:514
导读:1、打开include/arc.archives.class.php文件,查找:$this->PreNext['pre']="上一篇:{$p...
1、打开include/arc.archives.class.php文件,查找:
$this->PreNext['pre'] = "上一篇:{$preRow['title']} ";
在这一行上面加上以下代码:
$preRow['title']=cn_substr($preRow['title'],30);//最多显示15个汉字
查找:
$this->PreNext['next'] = "下一篇:{$nextRow['title']} ";
在这一行上面加上以下代码
$nextRow['title']=cn_substr($nextRow['title'],30);//最多显示15个汉字
然后重新生成所有页面即可。
$this->PreNext['pre'] = "上一篇:{$preRow['title']} ";
在这一行上面加上以下代码:
$preRow['title']=cn_substr($preRow['title'],30);//最多显示15个汉字
查找:
$this->PreNext['next'] = "下一篇:{$nextRow['title']} ";
在这一行上面加上以下代码
$nextRow['title']=cn_substr($nextRow['title'],30);//最多显示15个汉字
然后重新生成所有页面即可。
- 上一篇:织梦搜索页提示信息修改
- 下一篇:织梦导航部分去掉最后一个循环多出来的部分
- CMS教程排行
- 侧栏广告

