Home > CMS Tutorial > DEDECMS > body text

How to call custom fields in DreamWeaver

王林
Release: 2019-11-07 09:50:18
Original
2558 people have browsed it

How to call custom fields in DreamWeaver

The custom field of DedeCMS is to add an additional table. To call the content of the additional table, the explanation document provided by the official website of DedeCMS says:

To obtain additional table content, two conditions must be met:

1. Specify the channelid attribute, that is, channelid='content model id'

2. Specify to obtain The fields, that is, addfields='Field 1, Field 2'

are as follows:

{dede:arclist addfields="filetype,language,softtype" channelid='3'}
[field:textlink /] - [field:softtype /]
{/dede:arclist}
Copy after login

Through this example, it is very confusing, but it will be easy to understand after the following explanation.

{dede:arclist addfields='附加字段1,附加字段2,附加字段3' channelid='内容模型id号'}
[field:textlink /] - [field:附加字段1/] - [field:附加字段2/] - [field:附加字段3/]
{/dede:arclist}
Copy after login

In this way, you can easily call the custom fields of articles in the list anywhere on the site.

Recommended tutorial: dedecms tutorial

The above is the detailed content of How to call custom fields in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!