V5.7:
先進入后臺:
默認縮略圖寬度高度修改:后臺-系統-附件設置:縮略圖默認寬度:縮略圖默認高度。
默認摘要:后臺-系統-其它選項:自動摘要長度(0-250,0表示不啟用),默認是240;可以修改為想要的長度
默認標題字數限制:后臺-系統-其它選項-文檔標題最大長度:改此參數后需要手工修改數據表: 默認是60,可以改成想要的長度。
5.5以及之前版本:
修改相關文件:
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'))$description = cn_substrR($description,600); 這個是簡介的字數,修改數字為想要顯示的摘要字符數。
打開數據表,找到相關數據表,查找:description字段,將其中數值改為想要的字符數。