POST TIME:2021-05-22 21:17
V5.7:
先進入后臺:
默認縮略圖寬度高度修改:后臺-系統(tǒng)-附件設置:縮略圖默認寬度:縮略圖默認高度。
默認摘要:后臺-系統(tǒng)-其它選項:自動摘要長度(0-250,0表示不啟用),默認是240;可以修改為想要的長度
默認標題字數(shù)限制:后臺-系統(tǒng)-其它選項-文檔標題最大長度:改此參數(shù)后需要手工修改數(shù)據(jù)表: 默認是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);//簡略標題字符數(shù) $color = cn_substrR($color,7); $writer= cn_substrR($writer,20);//作者字符數(shù) $source= cn_substrR($source,30);//文章來源字符數(shù) $description= cn_substrR($description,600);//摘要字符數(shù) $keywords= trim(cn_substrR($keywords,30));//關鍵詞字符數(shù) $filename = trim(cn_substrR($filename,40));//文件名字符數(shù) if(!TestPurview('a_Check,a_AccCheck,a_MyCheck'))
$description = cn_substrR($description,600); 這個是簡介的字數(shù),修改數(shù)字為想要顯示的摘要字符數(shù)。
打開數(shù)據(jù)表,找到相關數(shù)據(jù)表,查找:description字段,將其中數(shù)值改為想要的字符數(shù)。