dedecms中修改摘要字数长度的方法介绍
	 
	 
	本文介绍下,修改dedecms系统中摘要字数长度的方法,希望对大家有所帮助。
	1,首先,修改表: dede_archives  字段 description  varchar(600);
	2,进入后台,找到  系统-->系统基本参数-->  其它选项 自动摘要长度(0-250,0表示不启用):600
	3,测试,如果有问题需要分别修改
	     ①修改措施文件
	  dede
	  /archives_add.php
	  /archives_edit.php
	  /article_add.php
	  /article_edit.php
	 
	查找代码:
	 
	<span style="font-family: 'courier new', courier; font-size: 13px;">$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,250);//摘要字符数
	   $keywords= trim(cn_substrR($keywords,30));//要害词字符数
	   $filename = trim(cn_substrR($filename,40));//文件名字符数
	   if(!TestPurview('a_Check,a_AccCheck,a_MyCheck'))
	</span>
	找到
	 
	$description = cn_substrR($description,250);
	 
	修改数字为想要显示的摘要字符数
	 
	如果需要修改产品文件的文档摘要,则修改:
	    dede
	    /product_add.php
	    /product_edit.php
	找到
	 
	<span style="font-family: 'courier new', courier; font-size: 13px;">$description = cn_substrR($description,250);
	</span>
	 
	修改cn_substrR中的数字为想要显示的摘要字符数即可。
	以上就是本节dedecms教程的全部内容了,希望可以帮助到大家。
	 
关键词:dedecms,中,修改,摘要,字数,长度,的,方法,介绍,    标签:
 
    更多资讯请收藏关注 
网站模板(www.1yc.cn)