Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of realizing static output of RSS and RSS subscription by dedecms

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about dedecms to achieve RSS site-wide static output and RSS subscription method, the editor thinks it is very practical, so share it with you to do a reference, I hope you can get something after reading this article.

How does dedecms realize RSS site-wide static output and RSS subscription?

First, you create a new rss.php file and copy the following code into it:

The code is as follows:

Save the file to the root of the site.

Then, make a rss.htm template output file and copy the following code to it:

The code is as follows:

{dede:global.cfg_webname/} {dede:global.cfg_basehost/} {dede:global.cfg_description/} copyright dedecms zh-cn {dede:global.cfg_webname/} {dede:global.cfg_adminemail/} {dede:arclist row='60' col='1' titlelen='100' orderby='pubdate'} https://www.jb51.net[field:arcurl/] [field:writer/] [field:typename/] [field:pubdate function='strftime ("% a] % d% b% Y% H:%M:%S + 0800 ", @ me)'/] https://www.jb51.net[field:arcurl/] article category: [field:typename/] read full text | email recommendation | comment reply] > have a good dream Good dream weaving {/ dede:arclist}

If you use your own site, please replace the URL with your URL. Save the file in the same directory as the index.htm home page template, log in to the administrative backend, clean the cache, and update the html.

-

The above is dynamic input, and if you want to turn it into static output, you have to do what is said below.

-

Step 1: open the single-page document management under the channel model

Click to add a page

According to the above picture to create such a single page file on it, but the name can not be used "site-wide RSS static output" had better use the English name, you can choose your own, click to save other do not care about it

Finally, update the cache. It's best to update it all over the site.

For the subscription of rss, I redo the original file rssmap.html in dede, and then overwrite the original file in the data folder

Here are some popular rss subscription codes for your reference

通过Google订阅本站

通过抓虾订阅本站

Dream weaving content management system

通过鲜果订阅本站

通过和讯博揽订阅本站

通过雅虎订阅本站

通过有道订阅本站

通过BlogLines订阅本站

On dedecms to achieve RSS site-wide static output and RSS subscription method to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report