当我们使用DEDECMS发布文章或者软件的时候,发现很多地方有字数限制。那该怎么办呢?今天织梦模板堂和大家一起把字数控制给去掉!
第一步修改数据库:
打开数据表,找到相关数据表,查找:description字段,将其中数值改为想要的字符数。
当然这个只是摘要的,其他的依次根据dedecms数据库表来更改,title等.
第二步:修改相关文件:①修改程序文件dede/archives_add.php/archives_edit.php/article_add.php/article_edit.php————————-如果修改专题摘要,还得修改:/spec_add.php/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’))找到$description = cn_substrR($description,600);修改红色数字为想要显示的摘要字符数