Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 04:37:40 10月04日 Update

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.

Tags: File output site-wide subscription code static update management method original content name copy article more best template article cache URL Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Microsoft macOS Huawei Shulou Technology