Home > CMS Tutorial > DEDECMS > body text

How to limit the number of words when dedecms obtains description information

藏色散人
Release: 2019-12-20 10:23:42
Original
1879 people have browsed it

How to limit the number of words when dedecms obtains description information

dedecms How to limit the number of words when obtaining description information?

Since the web page has a lot of description information, it will be very long when it is retrieved, and the style displayed on the page is not good-looking, so I want to limit the number of words output. The specific implementation of the call tag is as follows. Interested Dear webmaster friends, you can refer to the following

recommended learning: 梦Weavercms

For me, I just started to get the description Information, but some words are simply too much, and the display style is not good-looking, so I want to limit the number of words, so let me tell you the syntax to limit the number of words to obtain description information

The code is as follows:

[field:description function='cn_substr(@me,34)'/]
Copy after login

The above is the detailed content of How to limit the number of words when dedecms obtains description information. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!