DEDECMS Two-Time Development tab Summary

Source: Internet
Author: User

1. Get all top-level column lists with links:

{dede:channel type= ' top ' row= ' 8 ' currentstyle= ' <li><a href= ' ~typelink~ ' class= ' ThisClass ' >~typename~ </a></li> "}

<li><a href= ' [field:typelink/] ' >[field:typename/]</a></li>

{/dede:channel}

2, get the designated top-level columns with links:

{dede:type typeid= ' id '}

<a href= "[field:typelink/]" >[field:typename/]</a>

{/dede:type}

3. Article List title with link

Type specifies the column call label

(>=dedecms 3,dedecms 4,dedecms 5)

Name:type

function: get the link of the specified column

Grammar:

{Dede:type}

<a href= "[Field:typelink/]" >[field:typename/]</a>

{/dede:type}

File:

\include\taglib\type.lib.php

Function Lib_type (& $ctag,& $REFOBJ)

Default underlying Template:

Part_type_list.htm

Parameters:

typeid=0 Specifies the column ID, if not specified, gets the environment variable under the current page

Underlying field:

Id,typelink,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,listman

Global config variable label

(>=dedecms 3,dedecms 4,dedecms 5)

Name:Global

function: Gets the contents of the system global configuration variable

Grammar:

{dede:global.cfg_webname/}

[field:global.cfg_webname/] used in the underlying template

File:

System template Engine

Field content Variable

Name:field

function: used to obtain the field value of a particular column or file and the value of the common environment variable

Grammar:

{Dede:field name= ' field name '/} or {Dede:field. Field name/}

File:

In all view classes

Default underlying Template:

No

Parameters:

Plate Template:Phpurl,indexurl,indexname,templeturl,memberurl, Specurl

list Template:position,title,phpurl,templeturl,memberurl,indexurl,indexname,specurl, Column table Dede_arctype all fields where Position for "column one > column two" such a form of link, title is this form of titles

Document Template:Position,phpurl,templeturl,memberurl,indexurl,indexname,specurl,id (same as Id,aid)

Document All content fields: Archive #@__archives All fields of the table and attached tables.

Channel Get column list label

Name: Channel

function: weaving dream commonly used tags, usually for the top of the site to get site column information, convenient for members of the site to browse the entire station information

Grammar:

{dede:channel type= ' top ' row= ' 8 ' currentstyle= "<li><a href= ' ~typelink~ ' class= ' ThisClass ' >~typename~ </a> </li> "}

<li><a href= ' [field:typelink/] ' >[field:typename/]</a> </li>

{/dede:channel}

File:

\include\taglib\channel.lib.php
Function Lib_channel (& $ctag,& $REFOBJ)

Default underlying Template:

Channel_list.htm

Parameters:

typeid = ' 0 ' column ID

Reid = ' 0 ' superior column ID

row = ' + ' call number of columns

col = ' 1 ' of how many columns are displayed (default is single column)

type = ' son | Sun ' son indicates the subordinate column, self means the same level column, top top column

currentstyle = ' Apply Style '

Underlying field:

ID (same ID), typeID, Typelink, TypeName, Typeurl,typedir (only for column URLs) example:

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

Currentstyle support ~rel~, ~id~, ~typelink~, ~typename~

Note: In the absence of a specified typeid, the type tag is related to the environment of the template, for example, when the template is generated to column one, then Type= ' son ' represents all subclasses of column one

Example:

This tag is the global common mark, mainly used to display the page column classification, we can view the default template \templets\default\head.htm in the relevant code:

{dede:channel type= ' top ' currentstyle= "<li class= ' thisclass ' ><a href= ' ~typelink~ ' >~typename~</a> </li> "}
<li><a href= ' [field:typeurl/] ' >[field:typename/]</a></li>{/dede:channel}

The columns here can be set by the background, column display order according to the ranking of the high and low, we can in the system backstage [core]-[column Management] in the column settings:

Autochannel designated Columns

(> Dedecms 4,dedecms 5)

Name:autochannel

function: a link to a single column specifying the sort position

Grammar:

{Dede:autochannel partsort= ' 2 ' typeid=1}

<a href= ' [field:typelink/] ' >[field:typename/]</a>

{/dede:autochannel}

File:

\include\taglib\autochannel.lib.php

Function Lib_autochannel (& $ctag,& $REFOBJ)

Default Di Jing Template:

Part_autochannel.htm

Parameters:

Partsort = the sort position where the ' 0 ' column is located

typeid= ' 0 ' get the top section of a single column

Underlying field:

Id,typelink,typedir,isdefault,defaultname,ispart,namerule2,typename,moresite,siteurl,sitepath,listman

DEDECMS Two-Time Development tab Summary

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.