dedecms中修改摘要字?jǐn)?shù)長(zhǎng)度的方法介紹
本文介紹下,修改dedecms系統(tǒng)中摘要字?jǐn)?shù)長(zhǎng)度的方法,希望對(duì)大家有所幫助。
1,首先,修改表: dede_archives 字段 description varchar(600);
2,進(jìn)入后臺(tái),找到 系統(tǒng)-->系統(tǒng)基本參數(shù)--> 其它選項(xiàng) 自動(dòng)摘要長(zhǎng)度(0-250,0表示不啟用):600
3,測(cè)試,如果有問題需要分別修改
①修改措施文件
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);//大略標(biāo)題字符數(shù)
$color = cn_substrR($color,7);
$writer= cn_substrR($writer,20);//作者字符數(shù)
$source= cn_substrR($source,30);//文章來歷字符數(shù)
$description= cn_substrR($description,250);//摘要字符數(shù)
$keywords= trim(cn_substrR($keywords,30));//要害詞字符數(shù)
$filename = trim(cn_substrR($filename,40));//文件名字符數(shù)
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck'))
</span>
找到
$description = cn_substrR($description,250);
修改數(shù)字為想要顯示的摘要字符數(shù)www.genban.org 網(wǎng)站建設(shè)
如果需要修改產(chǎn)品文件的文檔摘要,則修改:
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中的數(shù)字為想要顯示的摘要字符數(shù)即可。
以上就是本節(jié)dedecms教程的全部?jī)?nèi)容了,希望可以幫助到大家。