Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of modifying the length of title title by dede5.7

Shulou Source: shulou.com Published: 2022-06-02 03:36:50 11月14日 Update

This article will explain in detail the method of changing the length of the title title by dede5.7. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

How does dede5.7 modify the title title length?

When we all have a good DEDE5.7CMS system, when we add data, we find that the official default title length is very short. From the screenshot, we can see that the default length is 60, which can not meet the needs of our content, so we need to modify it.

Here, according to the editor's experience, you can directly modify the character length between 200 and 255, which can meet the title length requirements of the website.

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 type:

ALTER TABLE `dede_ archives` CHANGE `title``title` VARCHAR (255)

Note that where dede_archives is the default MYSQL table prefix, friends who need it can change it to their own prefix name.

After the execution is successful, it is not finished yet. Dede also makes a limit on the length of the title and the limit on display when adding articles by default. We also need to modify the include\ taglib\ arclist.lib.php file.

After opening it, we look for the character $titlelen,30, where 30 is the length of the title truncated, and we modify it to 255.

On the dede5.7 to modify the title title length of the method to share 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.

Tags: Length title system method content prefix background character article time more article demand limitation good practical maximum success between command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Technology macOS OPPO Reno Microsoft