Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of modifying the word number of Abstract by dedecms

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of dedecms to modify the number of words in the abstract, which has a certain reference value, and friends who need it can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

How to modify the number of words in the summary by dedecms

Sometimes we feel that the summary of the text is not long enough, and our frequent operation is to go to the background to change the number of words, but the default maximum summary length of Zhimeng is 250 characters, 2 characters and a Chinese character, that is, 125 Chinese characters. What if it's not enough? This requires the modification of the word limit of the dream weaving abstract.

The methods are as follows:

First, let's talk about the method of modifying the default summary length at the backend:

Background-> system-> system basic parameters-> other options-> automatic summary length (0-250 zero means not enabled-> fill in the number on the line.

Second, the modification method in which the summary is greater than 250 is required.

1. Go to the database to modify the description field of the dede_archives table. Change the length 250 to the number you want. In addition, if you need to change the automatic summary to a manual summary, change the null to yes, and the default value to null.

2. Modify article_add.php and article_edit.php in the dede folder

Find one of them.

$description = cn_substrR ($description,250)

Change 250 to the number you want.

3. Modify article_add.htm and article_edit.htm in the dede folder

Find one of them.

Change height:50px to height:100px or more.

4. Go to the background, find the system-- system basic parameters-- other options-- automatic summary length, empty the numbers inside, do not fill in any numbers, press OK.

The limit of the length of this summary is solved.

Thank you for reading this article carefully. I hope it will be helpful for everyone to share the method of dedecms to modify the number of words of the abstract. At the same time, I also hope that you will support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report