欧美不卡视频中文字幕

Join VIP [check in and send gold coins]
Dream weaving worry free, heart to do source code! 7 years of brand, trustworthy! Dream weaving without worry, each fine product, rather than excessive! Purchase no less than 3000 yuan per month, free source sharing, open early, enjoy early! Temporary promotion for lifelong members, only 128 yuan! The new member opens, enters the member center directly -- the purchase member -- opens directly.

The ultimate adjustment method of word number in dedecms content summary

Abstract: This paper introduces the methods of calling article abstract on the list page in dedecms: 1: [field: Info /] 2: [field: description /] 3: [field: Info function = CN @ u substr (@ me, number of characters) /] 4: [field: description function = CN @ u substr (@ me, number of characters) /] the first and second methods are to call the article abstract directly
Article introduction

In dedecms, the main methods to call the article summary on the list page are as follows:
1:[field:info /]
2:[field:description /]
3: [field: Info function = "CN? Substr (@ me, number of characters)" /]
4: [field: description function = "cn_substr (@ me, number of characters)" /]
The first and second methods are to call the article abstract directly. When using [field: Info /], you can set the number of characters of the call summary in {Dede: Arclist infolen = '} {/ Dede: Arclist} (up to 250 set by the system); If [field: description /] is used, the upper limit of summary characters set in the background is used directly. Obviously, both methods are passive and inflexible.
The third and fourth methods realize the flexible adjustment of the display characters of the article summary through the function function. Of course, there is no significant difference between the four methods when the upper limit of the summary content is not changed. However, let's talk about how to modify this upper limit value, which can reflect the importance of [field: description function = "cn_substr (@ me, number of characters)" /].
In dedecms, PHP files related to article abstracts are as follows:
/dede/archives_ add. php
/dede/archives_ edit. php
/dede/article_ add. php
/dede/article_ edit. php
/dede/article_ description_ main. php
On the add page, there is a sentence: "$description = cn_substrr ($description, $cfg_auot_description);", This sentence realizes the function of [field: description function = "cn_substr (@ me, number of characters)" /]. Because this statement is really good for page layout, we didn't change it in the experiment.
On the edit page, there is a sentence: "US $description = CN? U substrr ($description, 250);", A familiar character number of "250" appears in this sentence, which is the upper limit set by the system. If it is GBK encoding, it will display 125 words. If it is UTF-8 encoding, it is 81 words. Obviously, if we want to break through the maximum number of characters in the abstract of an article, we must take it as an example. Yes, you can change "250" to other values, such as "500". It is not recommended to set it too high. One is that it is unnecessary to display too much content on the list page (it is better to use body directly to display too much content), and the other is to avoid redundancy in the database.
It's not enough to complete the above modification. We need to modify the article_ description_ main. php
In Article_ description_ main. PHP page, find "if ($dsize > 250) $dsize = 250;" Statement, which limits the number of characters that can be automatically retrieved in the background. Change "250" to "500", that is to say, the number of characters changed before can be the same. (if you confirm that each of your articles is manually added, there is no need to modify this file to complete the summary retrieval manually. Automatic summary retrieval is mainly prepared for a large number of articles and collection.)
Finally, log in to the background, and in the system system basic parameters other options, the length of the automatic summary can be changed to 500, that is, it is consistent with the number of characters previously modified.
After the above modification, we can go to the channel list page and call it through the tag. The example tag is as follows:
{dede:list typeid='' row='5' titlelen='100' orderby='new' pagesize='5'}

[field:title/]


[field:description function='cn_substr(@me,500)'/]...


{/dede:list}

Through the above methods, we realize that the character of the article summary is 500 characters, which completely breaks through the system limit of 250 characters of article summary, and provides a broader space for the layout of web pages.

Link to this article: http://b5y7hj.cn//dedecmsjiaocheng/zhimengjiqiao/183761.html

Copyright notice: Our resources are from the Internet or member release, if you infringe on your rights and interests, please contact us, we will delete within 24 hours! thank you!

 QR code of public number

Wechat public account

//Auto push

欧美不卡视频中文字幕_我和闺蜜共做一个男人_正撅着她肥白的大屁股

http://51.b5y7hj.cn http://36.b5y7hj.cn http://16.b5y7hj.cn http://34.b5y7hj.cn http://75.b5y7hj.cn http://87.b5y7hj.cn http://60.b5y7hj.cn http://48.b5y7hj.cn http://33.b5y7hj.cn http://06.b5y7hj.cn http://12.b5y7hj.cn