Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of realizing regular updating of Random articles by Dream Weaving cms

Shulou Source: shulou.com Published: 2022-06-02 05:07:12 10月02日 Update

This article will explain in detail the method of regularly updating random articles on Weaving Dream cms. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Dedecms has the tags and functions to call random articles, but we can't update them in real time. It must be a tragedy if we are still using the most primitive methods in this age of advanced technology. Yes, just like the title says, automatically, yes, automatically, automatically update the list of articles on the home page.

The first step calls the random article:

Dream weaving gives the following parameters for random article calls: (recommended study: dream weaving cms)

{dede:arclist sort='rand' titlelen=48 row=16} [field:title/] {/ dede:arclist}

This list code can call out random articles and change each time the dynamic page is refreshed, but since dream weaving is generated by static html on the home page, it will not change if it is not generated manually, so the following method is used.

Step 2: set the file to be updated automatically on a regular basis:

Copy the following code, paste it into a new file, name it autoindex.php, upload it to the plus folder of ftp, and see clearly that it is in the plus folder. The wrong location will not take effect:

Tags: Articles updates home pages code files methods locations generation folders more tags articles facets changes good original developed practical fully automatic content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker Redmi Apple Linux