Weaving dreams ways to add and invoke custom fields

Source: Internet
Author: User

Dream Weaving custom fields require special settings to be called in any template, or to be called in {dede:list} and {dede:arclist} tags.
Custom fields are fields that are customized for the list attached fields.


One, dream weaving how to add a custom field:
Website backstage "core channel model" content Model Management Select the channel model to which you want to add a custom field, with an example of a picture collection channel

Note: Create field, foreground parameter here "make the field available in the bottom template of the list" This must be checked

Add a new field in field management (Price attribute)


Add Jiage (can be called in the list template {dede:list}{/dede:list} using [Field:name/]) in the list additional field in the basic settings

Second, weaving dreams how to call custom fields:

1. Called in {dede:list}
{dede:list pagesize= ' 5 ' addfields= ' jiage ' channelid= ' 2 '}
<P> title:[field:title/]</p>
<P> Price:[field:jiage/]</p>
{/dede:list}
Description: addfields= ' jiage ' specifies the field to get addfields= ' field 1, Field 2 '
Channelid= ' 2 ' specifies the Channelid attribute (id value of the content model) the ID of the picture model is 2

2. Called in {dede:arclist}
{dede:arclist typeid= ' 3 ' row= ' 4 ' addfields= ' jiage ' channelid= ' 2 '}
<P> title:[field:title/]</p>
<P> Price:[field:jiage/]</p>
{/dede:arclist}

3. Call separately
Price: {dede:field name= ' jiage '/}

Weaving dreams ways to add and invoke custom fields

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.