Home  >  Article  >  CMS Tutorial  >  What is the method for dedecms to automatically generate tags?

What is the method for dedecms to automatically generate tags?

王林
王林forward
2020-11-24 17:26:064647browse

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);

Change to:

//生成HTML

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

InsertTags($tags,$arcID);

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete