Home > CMS Tutorial > DEDECMS > body text

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

藏色散人
Release: 2019-12-14 10:48:44
Original
2607 people have browsed it

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}
Copy after login

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!

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