Home CMS Tutorial DEDECMS Modify the default title length of dedecms

Modify the default title length of dedecms

Dec 17, 2019 pm 02:53 PM
dreamweavercms

Modify the default title length of dedecms

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

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!

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver CMS station group practice sharing Dreamweaver CMS station group practice sharing Mar 18, 2024 am 10:18 AM

Dreamweaver CMS station group practice sharing

Analysis of the reasons why the secondary directory of DreamWeaver CMS cannot be opened Analysis of the reasons why the secondary directory of DreamWeaver CMS cannot be opened Mar 13, 2024 pm 06:24 PM

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

Is there any fee for DreamWeaver CMS system? Is there any fee for DreamWeaver CMS system? Aug 11, 2023 pm 01:57 PM

Is there any fee for DreamWeaver CMS system?

How is the security of Dreamweaver CMS? How is the security of Dreamweaver CMS? Jul 27, 2023 pm 05:32 PM

How is the security of Dreamweaver CMS?

What should I do if Dreamweaver CMS fails to connect to the database? What should I do if Dreamweaver CMS fails to connect to the database? Jul 20, 2023 pm 02:22 PM

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

Dreamweaver CMS secondary development secrets: unlock personalized website customization skills Dreamweaver CMS secondary development secrets: unlock personalized website customization skills Mar 28, 2024 pm 03:48 PM

Dreamweaver CMS secondary development secrets: unlock personalized website customization skills

What does Dreamweaver CMS mainly do? What does Dreamweaver CMS mainly do? Aug 08, 2023 pm 03:24 PM

What does Dreamweaver CMS mainly do?

Precautions for deleting DreamWeaver CMS database files Precautions for deleting DreamWeaver CMS database files Mar 13, 2024 pm 09:27 PM

Precautions for deleting DreamWeaver CMS database files

See all articles