Home > CMS Tutorial > DEDECMS > body text

How to modify the title length in dede5.7

藏色散人
Release: 2019-12-09 10:12:06
Original
1844 people have browsed it

How to modify the title length in dede5.7

dede5.7 How to modify the title length?

How to modify the title length in dede5.7

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 )
Copy after login

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.

How to modify the title length in dede5.7

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!

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