微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

制作织梦dedecms首页RSS订阅源

ottom:0px;padding:5px 0px;color:#333333;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:14px;line-height:24px;white-space:normal;"> 织梦CMS认情况下,RSS订阅源是根据分类区分不同的RSS订阅的。如果用户订阅整个网站的RSS是个麻烦事,下面给出解决办法:

ottom:0px;padding:5px 0px;color:#333333;font-family:Verdana,sans-serif;font-size:14px;line-height:24px;white-space:normal;"> 1、添加一个RSS模板,文件名为:RSS_index.htm,将RSS模板文件保存到/templets/plus/目录下。文件内容为:

    RSS   {dede:global.cfg_webname/} {dede:global.cfg_basehost/} {dede:global.cfg_description/} zh_cn {dede:global.cfg_webname/} {dede:global.cfg_adminemail/} {dede:arclist row='50' orderby='pubdate' titlelen='200'}   [field:arcurl/] [field:typename/] [field:pubdate function='strftime("%a,%d%b%Y%H:%M:%s +0800",@me)'/] PHP='yes']@me = (strpos(@me['litpic'],'defaultpic') ? "": " normal" style="margin:0px;padding:0px;">  normal" style="margin:0px;padding:0px;"> normal" style="margin:0px;padding:0px;">  "); [/field:array][field:description function='html2text(@me)'/] ... ]]>  {/dede:arclist}  

ottom:0px;padding:5px 0px;color:#333333;font-family:Verdana,sans-serif;font-size:14px;line-height:24px;white-space:normal;"> 2、在根目录中添加RSS.PHP文件文件内容为:

PHP sh_sourceCode" style="margin:8px;padding:3px;font-size:14px;line-height:24px;width:600px;background-color:#FFFFFF;border-width:1px 1px 1px 5px;border-style:dashed dashed dashed solid;border-color:#BBBBBB;font-family:Consolas,monospace;white-space:pre-wrap;word-wrap:break-word;">PHP    PHP"  DEDEINCPHP"         RSS_index.htm"  display  

ottom:0px;padding:5px 0px;color:#333333;font-family:Verdana,sans-serif;font-size:14px;line-height:24px;white-space:normal;"> 3、在首页index.htm模板的头部标签添加属性代码如下:

link rel”alternate” typenormal" style="margin:0px;padding:0px;">applicationRSSxml” titlededefieldnormal" style="margin:0px;padding:0px;">title” href”http 

ottom:0px;padding:5px 0px;color:#333333;font-family:Verdana,sans-serif;font-size:14px;line-height:24px;white-space:normal;">   然后重新生成静态,通过浏览器上的RSS源识别按钮即可识别。或者在网页其它地方添加A标签形式的订阅链接认情况下,最多调用50个最新的文章,它有个好处时,是动态文件,不需要每次生成,只要有新文章RSS就会更新的。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐