dede5.7 How to modify the title length?
When we all installed the DEDE5.7CMS system, when adding information, we found that the official default title length was very short. We can see from the screenshot that the default title length is very short. The length is 60, which cannot meet our needs for content delivery, so we need to modify it accordingly.
Recommended study: 梦Weavercms
According to the editor’s experience, you can directly modify it to a character length between 200-255, which can meet the title of the website Length requirements.
We first open the background-system-other options, here we change the "maximum length of document title" to 255, and then submit and save.
Then we open the background-system-SQL command tool and enter:
ALTER TABLE `dede_archives` CHANGE `title` `title` VARCHAR( 255 )
Note that dede_archives is the default MYSQL table prefix, and friends who need it can modify it to their own prefix.
After the execution is successful, it has not yet been completed. When dede adds articles by default, it also imposes title length restrictions and display restrictions. We also need to modify the include\taglib\arclist.lib.php file.
After opening, we search for: $titlelen,30 characters, of which 30 is the length of the title interception, we change it to 255
The above is the detailed content of How to modify the title length in dede5.7. For more information, please follow other related articles on the PHP Chinese website!