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)'/]
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!