濮阳杆衣贸易有限公司

主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > dedecms中修改摘要字?jǐn)?shù)長(zhǎng)度的方法介紹

dedecms中修改摘要字?jǐn)?shù)長(zhǎng)度的方法介紹

POST TIME:2020-04-11 13:53

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)容了,希望可以幫助到大家。


收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
乐东| 武功县| 来凤县| 澎湖县| 建阳市| 庆元县| 桐城市| 房山区| 海淀区| 绿春县| 乌拉特后旗| 大连市| 宣恩县| 溧水县| 东方市| 饶河县| 乌什县| 苍山县| 阳西县| 宁夏| 正阳县| 浦北县| 美姑县| 宜兴市| 宁波市| 阳朔县| 荣昌县| 谢通门县| 凌海市| 新宁县| 巩留县| 青龙| 永平县| 茶陵县| 临猗县| 盘锦市| 顺义区| 平江县| 墨脱县| 翁牛特旗| 汉川市|