Modify the default title length of dedecms
Dec 17, 2019 pm 02:53 PMWhen using dede to call the list title, you will find that the number of words in the title text is not fully displayed. That is because the default title length of dede is 30 characters. In order to display the title completely, Make the following changes! (Recommended learning: 梦Weavercms)
1. Enter the background – system – system settings – basic system parameters – other options – change the document title to the length you want to the maximum extent. The original default is 60 (here changed to 200)
2. Log in to the database and change the title field in the database table dede_archives table. The original default is 60 (here changed to 200).
ALTER TABLE `dede_archives` CHANGE `title` `title` VARCHAR( 200 )
Solve dedecms UTF -8 Ways to display too short number of words in the title of the homepage article
Cause analysis: Because one Chinese character encoded in UTF-8 occupies 3 bytes, and GBK occupies 2 bytes, so the original $ titlelen = AttDef($titlelen,30) is equivalent to taking the largest 30 bytes, so only 11 Chinese characters are displayed at most.
Solution:
Enter the backend of dedecms, go to "Tag Source Code Management" in "Template Management", find arclist.lib.php, and click "Edit" , find the statement "$titlelen = AttDef($titlelen,30);" and change 30 to 60 or a larger value.
Of course you can also find arclist.lib.php in the \include\taglib directory, modify it in the same way, and then transfer it to your space.
The above is the detailed content of Modify the default title length of dedecms. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Dreamweaver CMS station group practice sharing

Analysis of the reasons why the secondary directory of DreamWeaver CMS cannot be opened

Is there any fee for DreamWeaver CMS system?

How is the security of Dreamweaver CMS?

What should I do if Dreamweaver CMS fails to connect to the database?

Dreamweaver CMS secondary development secrets: unlock personalized website customization skills

Precautions for deleting DreamWeaver CMS database files
