Dedecms the method of calling a custom field on the first page

Source: Internet
Author: User
Keywords Dedecms custom Fields

Wind Network (ithov.com) original article: Today in the study dedecms about the use of custom fields, because the first page module index_article.htm file needs to call the data in the custom field. When you obtain additional table content, you must meet the following two conditions:

1. Specify Channelid Properties
2, specify the field to get addfields= ' field 1, field ' &http://www.aliyun.com/zixun/aggregation/37954.html ' >nbsp;

Note: Each field is separated by an English half-width comma as shown in the following example:

{dede:channelartlist}
<dl class= "Tbox"
<dt><strong><a href= "{Dede:field name=" Typeurl '/} ' >{dede:field name= ' TypeName '/}</a></strong></dt>
<dd>
<ul class= " "
{dede:arclist titlelen= ' row= ' 3 ' infolen= ' D1 ' orderby= ' rand ' addfields= ' size, material, quantity ' Channelid= ' 1 '}
<li><p><a href= [field:arcurl/] "title=" [Field:title function= ' Html2text (@me) '/] "><img src=" [field:litpic/] "alt=" [Field:fulltitle function= ' Html2text (@me) '/] "/></a></p>
<p><a href= "[field:arcurl/]" title= ' [field:fulltitle/] ' >[field:title/]</a></p>
<p> Dimensions </p>
<p>[field:size/]</p>
<p> material: [Field:material/]</p>
<p >[field:quantity/]</p>
</li>
{/dede:arclist}

Related Article

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.