Home > CMS Tutorial > DEDECMS > body text

What is the method for dedecms to automatically generate tags?

王林
Release: 2020-11-24 17:26:06
forward
4654 people have browsed it

What is the method for dedecms to automatically generate tags?

Article background:

Since dedecms cannot automatically generate tags, the tags generated by the TAG tag management in the background of the system actually copy the keywords and then insert the tags middle. So if we want to automatically generate a tag, we need to assign the value of keywords to the tag.

(Related recommendations: dede tutorial)

The specific method is as follows:

Modify the article_add.php file under the management directory (default is dede)

Find the following location

//生成HTML
    InsertTags($tags,$arcID);
Copy after login

Change to:

//生成HTML

 if( $tags=="" && $keywords!="") $tags = $keywords;

InsertTags($tags,$arcID);
Copy after login

Save and upload.

The above is the detailed content of What is the method for dedecms to automatically generate tags?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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