Home > CMS Tutorial > DEDECMS > body text

How to modify the number of words in the abstract in dedecms

angryTom
Release: 2019-11-09 15:21:07
Original
2264 people have browsed it

How to modify the number of words in the abstract in dedecms

dedecmsHow to modify the number of words in the abstract

Sometimes I feel that the text summary is not long enough. What we often do is to The number of text words is modified in the background, but the default maximum summary length of Dreamweaver is 250 characters, 2 characters per Chinese character, which is 125 Chinese characters. What if it is not enough? This requires modifying the word limit on the length of Dreamweaver abstracts.

The method is as follows:

First, let’s talk about the method of modifying the default summary length in the background:

Backstage-> System->Basic system parameters->Other options->Automatic summary length (0-250, 0 means not enabled->Just fill in the number.

2. The summary needs to be greater than 250 Modification method.

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

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

find

$description = cn_substrR($description,250);
Copy after login

250 and change it to The number you want.

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

Find the

<textarea name="description" rows="5" id="description" style="width:80%;height:50px">
Copy after login

and change height:50px to height :100px or even more.

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

This summary length limitation is solved.

Recommended tutorial: dedecms tutorial

The above is the detailed content of How to modify the number of words in the abstract in dedecms. 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