Home > CMS Tutorial > DEDECMS > How does DEDECMS generate HTML pages?

How does DEDECMS generate HTML pages?

藏色散人
Release: 2019-11-15 10:23:02
Original
3890 people have browsed it

How does DEDECMS generate HTML pages?

How does DEDECMS generate HTML pages?

Dreamweaver DEDECMS information publisher publishes articles by default and automatically updates and generates HTML pages

I always thought that DEDECMS information publisher published articles in the background, but It requires administrator review before it can be displayed. A friend asked me this question today. Question: "Can I publish it directly and automatically generate HTML, so as to save the trouble of having to be reviewed by the administrator?" I told him first that it was not possible and that it could only be displayed after being reviewed by the administrator. Haha, it’s a shame that I’ve been using DreamWeaver for so long, and I can still answer such a simple question so well!

After careful study, there is a way to allow the information publisher's permissions to automatically generate HTML after publishing an article, and automatically generate a list page and home page. The specific method is as follows:

if(!TestPurview('a_Check,a_AccCheck,a_MyCheck'))
 {
  $arcrank = -1;
 }
Copy after login

arcrank = -1 means there is no review arcrank = 0 means the article has been reviewed

There is such a sentence when processing the saved code, which means checking whether there are permissions before writing to the database, which are "review any document" and "review "Authorized Documents" and "Audit Documents I Publish". As long as you have one of these three rights, then the published article has been reviewed, otherwise it has not been reviewed.

So the solution is to go to the background: System Settings-> User Group Settings-> Information Publisher Permissions and add the "Audit my published documents" permission. By default, there is no such permission. . Of course any of the three permissions above will do.

Then modify dede/templets/article_add.htm and remove where adminrank<='$urank' and it will be OK!

The above is the detailed content of How does DEDECMS generate HTML 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