婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網(wǎng)站建設(shè) > 建站知識 > dedecms中修改摘要字數(shù)長度的方法介紹

dedecms中修改摘要字數(shù)長度的方法介紹

POST TIME:2020-04-11 13:53

dedecms中修改摘要字數(shù)長度的方法介紹

本文介紹下,修改dedecms系統(tǒng)中摘要字數(shù)長度的方法,希望對大家有所幫助。
1,首先,修改表: dede_archives 字段 description varchar(600);
2,進入后臺,找到 系統(tǒng)-->系統(tǒng)基本參數(shù)--> 其它選項 自動摘要長度(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);//大略標題字符數(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教程的全部內(nèi)容了,希望可以幫助到大家。


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

  • 400-1100-266
主站蜘蛛池模板: 康平县| 原阳县| 凤台县| 东方市| 彭州市| 连江县| 洛扎县| 文昌市| 民县| 汕尾市| 随州市| 赣榆县| 临高县| 盘山县| 泰宁县| 得荣县| 巴东县| 武义县| 财经| 股票| 肇源县| 南雄市| 乌恰县| 阿城市| 浦东新区| 陵水| 奈曼旗| 若尔盖县| 博客| 玉龙| 张掖市| 南木林县| 获嘉县| 浮梁县| 漳州市| 吴旗县| 北京市| 白城市| 双柏县| 涿州市| 麻江县|