How to modify the keyword length of Dream Weaving dede
This article will explain in detail how to modify the keyword length of Weaving Dream dede. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
How does Dream Weaving dede modify keyword length?
In the production of the website, very often, some default settings of dede may not meet our requirements, just like the length of the dede keyword, which can not meet our requirements. If we want to modify the length we need, we need to modify some php files and databases.
Dede file modifies the default keyword length
Step 1: locate and open the article_edit.php and article_add.php files in the dede background directory.
Computer maintenance Technology Network Note: if it is to modify the key words of the topic, you need to modify the spec_add.php and spec_edit.php files.
Step 2: search the file for "keywords" and find "$keywords = trim (cn_substrR ($keywords, 60));" this line of code, change to $keywords = $keywords; and save.
Database keyword default length modification
By default, dede's keywords keyword database type is char and the length is only 20, so we need to change this database field type to varchar length also to 200.
Step 1: successfully log in to the dede background, or connect to the mysql database using a tool software or something.
Step 2: locate the dede database and execute the following code.
The code is as follows:
ALTER TABLE dede_archives MODIFY COLUMN keywords VARCHAR; the above SQL statement indicates that dede_archives is the name of the dede table. Keywords is the name of the field to be modified. ALTER TABLE table name MODIFY COLUMN field name data type; on weaving dream dede how to modify the keyword length is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.