Home  >  Article  >  CMS Tutorial  >  How to call and specify the body content of an article on the homepage of dedecms

How to call and specify the body content of an article on the homepage of dedecms

藏色散人
藏色散人Original
2019-12-14 10:48:442585browse

How to call and specify the body content of an article on the homepage of dedecms

How to call and specify the body content of an article on the dedecms homepage?

The example of this article describes the method of calling the dedecms homepage to specify the body content of an article. Share it with everyone for your reference. The specific implementation method is as follows:

Recommended learning: 梦Weavercms

The code is as follows:

{dede:arclist idlist='要调用文章的id' channelid='1' addfields='body'}
[field:body function='cn_substr(@me,330)'/]
{/dede:arclist}

Among them:

idlist is to Call the id of the article, channelid is the content model id, addfields is to call the fields in the additional table.

The above is the detailed content of How to call and specify the body content of an article on the homepage of dedecms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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