Dede:修改文章摘要和简短标题等的方法

2019-10-24,,

 修改相关文件:
  

①修改程序文件
  dede(Jzquan.com注:你的管理目录,默认是dede,如果你修改了,请到相应目录)
  /archives_add.php
  /archives_edit.php
  /article_add.php
  /article_edit.php
  -------------------------
  如果修改专题摘要,还得修改:
  /spec_add.php
  /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字段,将其中数值改为想要的字符数。

  ============================================
  此方法还可以修改其他显示字符的数值
  注意绿色部分及说明。不再赘述。
  (自己摸索的,不一定正确,错误之处高人指教。)

《Dede:修改文章摘要和简短标题等的方法.doc》

下载本文的Word格式文档,以方便收藏与打印。