Are the articles published by dedecms static pages?
The official program of dedecms publishes static pages by default , that is, as soon as an article is published, a static page will be automatically generated. Of course, the published article can also be set to be dynamic or static through SQL commands in the dedecms background.
dedecms--Convert static pages into dynamic pages
Specific steps:
1: Set the homepage to dynamic browsing
2: Enter the background → System → SQL command line tool → Run SQL command line:
Single-line command execution query command:
1. Set all documents to "dynamic only": update dede_archives set ismake=-1
2. Set all documents to "static only": update dede_archives set ismake=1
3. Set all columns to "use dynamic pages": update dede_arctype set isdefault=-1
4. Set all columns to "use static pages": update dede_arctype set isdefault=1
This way you don't need to update the document in the background every time you update the page. and update the column;
3: After setting the page to a dynamic page, after we refresh the article content page, we will find that the path to the static page is different. The path to the original static page article page is :/a/wenzhang/2017/0526/XXX.html; But after changing it to a dynamic page, it becomes
/plus/view.php?aid=XXX;
More For dedecms technical articles, please visit the dedecms usage tutorial column!
The above is the detailed content of Are the articles published by dedecms static pages?. For more information, please follow other related articles on the PHP Chinese website!