Get the App
SLTechnology News&Howtos  ›  Servers  › 

The usage of dream-weaving tag code Channel tag

Shulou Source: shulou.com Published: 2022-06-02 05:17:19 10月03日 Update

This article is to share with you about the use of the dream tag code Channel tag. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Label name:

Channel

Function description:

Used to get column list

Scope of application:

Cover template, list template, document template

Basic syntax:

{dede:channel row='' type=''}

Custom style template (InnerText)

{/ dede:channel}

Attribute description:

Row=' number 'indicates the number of records obtained (it is generally used when there are too many columns at a certain level. The default is 8)

Type = top,sun/son,self

Type='top' represents the top column.

Type='son' or 'sun' indicate subordinate columns

Type='self' stands for sibling column

Note: the last two attributes must be used in the list template.

Underlying template variable

ID,typename,typedir,typelink (indicates only the URL of the column)

Example:

{dede:channel type='top'} [field:typename/] {/ dede:channel}

Note: when typeid is not specified, the type tag is related to the environment of the template, for example, if the template is generated to column 1, then type='son' represents all subclasses of column 1.

Thank you for reading! About the use of dream tag code Channel tag to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Tags: Columns templates tags tags code usage methods content properties more related good practical subordinate two functions variables siblings names subclasses Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Huawei Shulou Technology Microsoft NVidia