DEDECMS Common label calls

Source: Internet
Author: User

Top-level column calls

{dede:channel type= ' top ' row= ' 10 '}
<a href= ' [field:typeurl/] ' ><span>[field:typename/]</span></a>
{/dede:channel}

Call labels for level two columns

{dede:channel typeid= ' type= ' son '}
<dd><a href= ' [field:typelink/] ' >[field:typename/]</a></dd>
{/dede:channel}

The call label for the new model's document

{dede:arclist row= ' 4 ' typeid= ' channelid= ' + ' flag = ' h ' addfields= ' Name,area,role,school,jianjie '}

Ps:row=5 the number of rows displayed by the record

Typeid= ' 25 ' shows the channel ID

Channelid = 17 Model ID

flag= ' h ' document marked as headline

addfields= ' field, must follow the sort description in the model

Calls to global variables

{dede:global.phone/}

Template directory:

{dede:global.cfg_templets_skin/}

Header/Foot file included

{dede:include filename= "header.htm"/}

General article type

Current location: {Dede:field name= ' position '/}

Article name: {dede:field.title/}

Release date: {dede:field.pubdate function= "mydate (' y-m-d h:i ', @me)"/}

Source: {dede:field.source/}

Author: {dede:field.writer/}

First Picture: {Dede:field name= ' imgurls ' alt= ' picture output area '}

Article content: {dede:field.body/}

Previous {Dede:prenext get= ' pre '/}

Next {dede:prenext get= ' next '/}

Site name: {dede:global.cfg_webname/}

Paging {dede:pagelist listitem= "Info,index,end,pre,next,pageno" listsize= "5"/}

Picture Set model

List page Jump details page URL address: [field:arcurl/]

Thumbnail Image: [field:litpic/]

Picture title: [field:title/]

Section Jump Address

{dede:arclist typeid= ' 1 ' row= ' 1 ' addfields= ' redirecturl ' channelid= ' 1 ' orderby= ' pubdate '}

<a href= "[field:redirecturl/]" target= "_blank" >[field:title/]</a>

{/dede:arclist}

Friendship Link Traversal:

{dede:flinktype type= "Dedecms"}

<a href= "#" _for= "Flink_[field:id/]" >[field:typename/]</a>

{/dede:flinktype}

Picture Collection Traversal

{dede:arclist row=10 orderby=pubdate type= ' image. ' imgwidth= ' 143 ' imgheight= ' 106 '}

<li><a href= "[field:arcurl/]" >[field:image/]<span class= "title" >[field:title/]</span> </a></li>

{/dede:arclist}

Article Type traversal:

<div class= "ListBox" > {dede:channelartlist}

<DL class= "Tbox" >

<dt><strong><a href= "{dede:field name= ' typeurl '/}" >{dede:field name= ' TypeName '/}</a></ Strong><span class= "More" ><a href= "{dede:field name= ' typeurl '/}" > More ... </a></span></ Dt>

<dd>

<ul class= "D1 Ico3" >

{dede:arclist titlelen= ' row= ' 8 '}

<li><span>[field:pubdate function= "mydate (' m-d ', @me)"/]</span><a href= "[Field:arcurl/]" > [Field:title/]</a></li>

{/dede:arclist}

</ul>

</dd>

</dl>

{/dede:channelartlist} </div>

[field:title/]


This article is from the "11113972" blog, please be sure to keep this source http://11123972.blog.51cto.com/11113972/1884827

DEDECMS Common label calls

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.