织梦技巧:织梦采集摘要的BUG即自动摘要功能的优化

默认dedecms采集的时候将文章标题作为摘要内容。
解决:
修改采集页面“摘要过滤内容”的默认值为 {dede:trim replace=""}(.*){/dede:trim}
这样每天采集新的文章的时候就自动将摘要取了空值。不用每采集一次就执行SQL

-------------------自动摘要修正----------------文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

2.打开dede/article_description_main.php  文件
找到:article_description_main.php  中的:文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

if(strlen($description)>10 || $description=='-')//这句意思是摘要长度>10即不更新。文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

 文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

修改为:文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

if( $description=='-')文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

然后通过后台,采集中的“自动摘要功能”,就可以重要取得“摘要了”
然后手动提取摘要。文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

原文地址文章源自堕落的鱼-https://www.duoluodeyu.com/703.html 文章源自堕落的鱼-https://www.duoluodeyu.com/703.html

 
评论  4  访客  3  作者  1
    • 幽灵
      幽灵 2

      璐哥啊璐哥……

        • 堕落的鱼
          堕落的鱼

          @ 幽灵 你怎么想起来来看哥了,哥哥我还以为你都忘记我了呢。

        • 郑州SEO孟龙飞
          郑州SEO孟龙飞 1

          看到代码就头疼

          • gamcreating
            gamcreating 0

            请问有办法让 自动摘要能从 文章的某个位置开始吗
            不想从文章的头部开始取

          匿名

          发表评论

          匿名网友
          :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
          确定

          拖动滑块以完成验证