Dede template tag

Source: Internet
Author: User
Tags: Template Dede 1. The latest document list 1-5 is the called arclist tag

{Dede: arclist typeid = ''titlelen = '28' ROW = '60' Col = '1 '}
• <A href = '[field: arcurl/]'> [field: Title/] </a> <br>
{/Dede: arclist}

2. Latest image list

{Dede: arclist typeid = '0' titlelen = '24' ROW = '2' Col = '4' imgwidth = '000000' imgheight = '90 '}
<Table width = '000000' border = '0' align = "center" cellpadding = '2' cellspacing = '1' bgcolor = '# e6eae3'>
<Tr align = 'center'>
<TD bgcolor = '# ffff'> [field: imglink/] </TD>
</Tr>
<Tr align = 'center'>
<TD Height = '20' bgcolor = "# f8fcef"> [field: textlink/] </TD>
</Tr>
</Table>
{/Dede: arclist}

3. List of recommendation documents

{Dede: arclist typeid = ''type = 'commend' titlelen = '28' ROW = '10' Col = '1 '}
• <A href = '[field: arcurl/]'> [field: Title/] </a> <br>
{/Dede: arclist}

4. List of popular documents

{Dede: arclist typeid = ''orderby = 'click' titlelen = '28' ROW = '10' Col = '1'} string 1
• <A href = '[field: arcurl/]'> [field: Title/] </a> <br>
{/Dede: arclist}

5. List of the latest topics

{Dede: specart typeid = ''titlelen = '28' ROW = '10' Col = '1 '}
• <A href = '[field: arcurl/]'> [field: Title/] </a> <br>
{/Dede: specart}
But:
{Dede: arclist typeid = ''type = 'spec 'titlelen = '28' ROW = '10' Col = '1 '}
• <A href = '[field: arcurl/]'> [field: Title/] </a> <br>
{/Dede: arclist}

6. For the column list, see dedecms template installation/production overview page 6th.
Lihua meeting and temple fair under the focus Column

{Dede: Channel typeid = '1' type = 'son '}
<A href = "[field: typelink/]"> [field: typename/] </a>
{/Dede: Channel}
But:
{Dede: channel type = 'top '}
<A href = "[field: typelink/]"> [field: typename/] </a>
{/Dede: Channel}

7. custom tag

{Dede: mytag typeid = ''name = 'tagname' ismake = '0 '/}

8. System Variables

{Dede: Global name = 'variable name '/}
Common variables: pai_webname (website name), pai_cmspath (CMS installation directory), pai_templeturl (template URL), and pai_phpurl (plug-in URL)

String 2

9. Introduce a file

Use Tag: Include, Code: (whether the file name ismake contains the template tag, if it contains ismake = 'yes ')
{Dede: Include File = 'file name' ismake = ''/}

List template tag
1. Vote Management

{Dede: Vote id = '1' lineheight = '22'
Tablewidth = '000000' titlebgcolor = '# ede2'
Titlebackground = ''tablebgcolor = '# ffff '}
{/Dede: Vote}

2. Links

If you want to display only the link whose property is "Homepage", add the link type = 2 property.
Display All reviewed links in text format

{Dede: flink type = 'textall' ROW = '4' Col = '6' titlelen = '16' linktype = 2
Tablestyle = 'width = 100% border = 0 cellspacing = 1 cellpadding = 1 '/}
Type = 'textall, textimage, text, image'

3. site News

{Dede: mynews ROW = '1' titlelen = '24 '}
[Field: Title/] ([field: writer/] | [field: senddate function = 'getdate ("@ me") '/])
<HR size = 1>
[Field: body/]
{/Dede: mynews}

Document Template tag

Document Template refers to the template on the document view page, that is, cmspath/templets/Article _ *. htm string 4
When editing a template, insert the template code in HTML mode.
See dedecms template installation/production Overview: Common special function code

Other templates
1. 2. Topic List Templates and search List Templates

(1) define the list size

{Dede: Page pagesize = 'number of results per page '/}
Dedecms 3.1 release and later versions, which can be defined directly in the list tag

(2) pagination document list

{Dede: List Col = ''titlelen =''
Infolen = ''imgwidth = ''imgheight = ''orderby = ''pagesize = ''} {/Dede: List}
List fixed underlying template variables (that is, [field: Name/]): see dedecms template installation/production overview page 11th.
The list tag allows any field in the appended table to be used as the underlying variable, but must be configured in the channel model.

(3) define pagination navigation Tag: see dedecms template installation/production overview page 12th.

{Dede: pagelist listsize = '3' listitem = 'index, pre, pageno, next, end '/}

3. system template tag

1. Global tag

{Dede: Global name = 'variable name '/}

2. The general usage of datalist flag is

{Dede: detalist}
[Field: field/]...
{/Dede: detalist}

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.