Home > CMS Tutorial > DEDECMS > body text

Are the articles published by dedecms static pages?

藏色散人
Release: 2019-08-01 16:27:54
Original
2614 people have browsed it

Are the articles published by dedecms static pages?

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!