Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of invoking custom fields in dream weaving

Shulou Source: shulou.com Published: 2022-06-02 05:18:00 11月17日 Update

This article is to share with you about the method of weaving dreams to call custom fields. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Dream weaving DedeCMS custom field adds an additional table. To call the contents of the additional table, the explanation document given by the Dream Weaving official website says:

To get the contents of an additional table, two conditions must be met:

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

2. Specify the field to be obtained, that is, addfields=' field 1, field 2'

Such as the following calling code:

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

Through this example, it is very difficult to understand, and it is easy to understand after the following explanation.

{dede:arclist addfields=' additional field 1, additional field 2, additional field 3 'channelid=' content model id number'} [field:textlink /]-[field: additional field 1 /]-[field: additional field 2 /]-[field: additional field 3 /] {/ dede:arclist}

This makes it easy to call custom fields of articles from lists anywhere on the site.

Thank you for reading! The method of weaving dreams to call custom fields is shared here. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Tags: Fields attachments content methods articles more models interpretations good practical inexplicable two that is code examples sites places properties documents conditions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker Shulou Tech Info Linux Xiaomi