web建站教程
  1. 首页
  2. vuejs
  3. js
  4. 好玩
  5. seo教程
  6. 前端知识
  7. 百度echarts
  8. 更多
    php入门
    nodejs
    mockjs
    reactjs
    mysql
    wordpress
    织梦cms
    帝国cms
    git教程
    IT知识
    模板大全
    休息站

详解Dedecms 5.5 实现自定义标题处理(附采集规则

504 ℃
           

Dedecms 5.5 实现自定义标题处理,在 {dede:function}@me='64edu.com'.@me{/dede:function}中添加自定义的处理方法,就可以实现自定义dedecms5.5 5.3的接口处理效果

以下为引用的内容:

{dede:sppage sptype='full'}{/dede:sppage} {dede:previewurl}http://tech.sina.com.cn/c/2003-04-18/18689.html{/dede:previewurl} {dede:keywordtrim}{/dede:keywordtrim} {dede:descriptiontrim}{/dede:descriptiontrim} {dede:item field='title' value='' isunit='' isdown=''} {dede:match}<title>[内容]</title>{/dede:match} {dede:trim replace=""}_开 发 者_网上学园_科技时代_新浪网{/dede:trim} {dede:function}@me='64edu.com'.@me{/dede:function} {/dede:item}{dede:item field='writer' value='' isunit='' isdown=''} {dede:match}{/dede:match} {dede:function}{/dede:function} {/dede:item}{dede:item field='source' value='' isunit='' isdown=''} {dede:match}{/dede:match} {dede:function}{/dede:function} {/dede:item}{dede:item field='pubdate' value='' isunit='' isdown=''} {dede:match}{/dede:match} {dede:function}{/dede:function} {/dede:item}{dede:item field='body' value='' isunit='1' isdown='1'} {dede:match}<tr><th class=f24><font color=#05006C>[内容]<table width=565 border=0 cellspacing=0 cellpadding=0>{/dede:match} {dede:trim replace=''}<a([^>]*)>(.*)</a>{/dede:trim} {dede:trim replace=''}<!–(.*)–>{/dede:trim} {dede:trim replace=''}<img([^>]*)>{/dede:trim} {dede:trim replace=''}<object([^>]*)>(.*)</object>{/dede:trim} {dede:trim replace=''}<embed([^>]*)>(.*)</embed>{/dede:trim} {dede:trim replace=''}<iframe([^>]*)>(.*)</iframe>{/dede:trim} {dede:function}{/dede:function} {/dede:item}

测试5.5的采集规则

以下为引用的内容:

复制代码代码如下:BASE64:e2Rl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pZWxkPSdwdWJkYXRlJyB2YWx1ZT0nJyBpc3VuaXQ9JycgaXNkb3duPScnfQ0KICAge2RlZGU6bWF0Y2h9ey9kZWRlOm1hdGNofQ0KICAgDQogICB7ZGVkZTpmdW5jdGlvbn17L2RlZGU6ZnVuY3Rpb259DQp7L2RlZGU6aXRlbX17ZGVkZTppdGVtIGZpZWxkPSdib2R5JyB2YWx1ZT0nJyBpc3VuaXQ9JzEnIGlzZG93bj0nMSd9DQogICB7ZGVkZTptYXRjaH08dHI+PHRoIGNsYXNzPWYyND48Zm9udCBjb2xvcj0jMDUwMDZDPlvlhoXlrrldPHRhYmxlIHdpZHRoPTU2NSBib3JkZXI9MCBjZWxsc3BhY2luZz0wIGNlbGxwYWRkaW5nPTA+ey9kZWRlOm1hdGNofQ0KICAge2RlZGU6dHJpbSByZXBsYWNlPScnfTxhKFtePl0qKT4oLiopPC9hPnsvZGVkZTp0cmltfQ0Ke2RlZGU6dHJpbSByZXBsYWNlPScnfTwhLS0oLiopLS0+ey9kZWRlOnRyaW19DQp7ZGVkZTp0cmltIHJlcGxhY2U9Jyd9PGltZyhbXj5dKik+ey9kZWRlOnRyaW19DQp7ZGVkZTp0cmltIHJlcGxhY2U9Jyd9PG9iamVjdChbXj5dKik+KC4qKTwvb2JqZWN0PnsvZGVkZTp0cmltfQ0Ke2RlZGU6dHJpbSByZXBsYWNlPScnfTxlbWJlZChbXj5dKik+KC4qKTwvZW1iZWQ+ey9kZWRlOnRyaW19DQp7ZGVkZTp0cmltIHJlcGxhY2U9Jyd9PGlmcmFtZShbXj5dKik+KC4qKTwvaWZyYW1lPnsvZGVkZTp0cmltfQ0KICAge2RlZGU6ZnVuY3Rpb259ey9kZWRlOmZ1bmN0aW9ufQ0Key9kZWRlOml0ZW19DQp7L2RlZGU6aXRlbWNvbmZpZ30=:END

网站文章页面优化要注意标题、描述及关键词

wordpress发布文章后标题分隔符(被转义成)解决方法

wordpress各种wp_title标题介绍

分析文章内容与标题的匹配度对用户粘度的影响

网站优化SEO双标题怎么写

标签: 标题

上面是“详解Dedecms 5.5 实现自定义标题处理(附采集规则”的全面内容,想了解更多关于 织梦cms 内容,请继续关注web建站教程。

当前网址:https://ipkd.cn/webs_457.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

当前位置: 网站首页 > 织梦cms
本文共计4790个字,预计阅读时长32分钟
生活小工具,收录了80多款小工具
上一篇: WordPress用自定义代码实现更高级的分页功能
下一篇: 车牌号输入HTML模板下载
x 打工人ai神器