Dedecms to invoke a specific ID article content implementation method
Code Explanation:
{dede:loop table= ' dede_addonarticle ' sort= ' aid ' row= ' 8 ' if= ' aid=524 '}
One of the aid=524 represents an article with an ID number of 524 for the list of articles,
Table= ' dede_addonarticle ' as the table of the saved article
The middle of the line is the most important,
[Field:body function= "Html2text (cn_substr (' @me ', 200))"/]
There are several ways to invoke this sentence:
such as: [field:body/] will get all the content of the article, do not filter HTML tags
[Field:body function= "(Cn_substr (' @me ', 200))"/]
Only the first 200 characters of the content are taken
[Field:body function= "Html2text (cn_substr (' @me ', 200))"/]
Take the first 200 characters and filter the HTML tags
In fact, Dedecms is really strong, I have been tasted.
Dedecms to invoke a specific ID article content implementation method