DEDE织梦cms常用的参数标签汇总、以及操作过程中的一些bug问题解决方法,dede网站二开,以下龙腾飞网络科技-小吴在建站实操中笔记记录,织梦dede建站教程保存使用非常方便:
【DEDE建站教程】
织梦网站修改title、shorrtitle、writer、description字数限制
解决方法:
修改标题title,副标题shorrtitle,作者writer,内容description的步骤:
1、进入到数据库中:
找到dede_archives表,里面有key,title,shorrtitle,writer,description,可以修改成相应的值,这里的值要记住,下面还要对应修改PHP文件。
2、相关相应程序文件:
①修改程序文件
dede/archives_add.php
dede/archives_edit.php
dede/article_add.php
dede/article_edit.php
如果修改专题摘要,还得修改:
dede/spec_add.php
dede/spec_edit.php
查找以下代码:
$title= cn_substrR($title,$cfg_title_maxlen);
$shorttitle = cn_substrR($shorttitle,36);//简略标题字符数
$color = cn_substrR($color,7);
$writer = cn_substrR($writer,20);//作者字符数
$source = cn_substrR($source,30);//文章来源字符数
$description = cn_substrR($description,600);//摘要字符数
$keywords = trim(cn_substrR($keywords,30));//关键词字符数
$filename = trim(cn_substrR($filename,40));//文件名字符数
if(!TestPurview(‘a_Check,a_AccCheck,a_MyCheck'))
找到
$title= cn_substrR($title,$cfg_title_maxlen);
$writer = cn_substrR($writer,20);//作者字符数
$description = cn_substrR($description,600);//摘要字符数
$keywords = trim(cn_substrR($keywords,30));//关键词字符数
数字为数据表中修改好的字符。