Home  >  Article  >  CMS Tutorial  >  How to use the Dreamweaver tag code Channel tag

How to use the Dreamweaver tag code Channel tag

王林
王林Original
2019-11-08 14:23:372313browse

How to use the Dreamweaver tag code Channel tag

Tag name:

Channel

Function description:

Use To obtain the column list

Applicable scope:

Cover template, list template, document template

Basic syntax:

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

Custom style template (InnerText)

{/dede:channel}

Attribute description:

row='Number' indicates the bar for obtaining the record Number (generally used when there are too many columns at a certain level, the default is 8)

type = top,sun/son,self

type='top' indicates the top column

type='son' or 'sun' indicates subordinate columns

type='self' indicates same-level columns

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

Underlying template variables

ID,typename,typedir,typelink(仅表示栏目的网址)

Example:

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

Note: in no When typeid is specified, the type tag is related to the environment of the template. For example, if the template is generated to column one, then type='son' means all subclasses of column one.

Recommended tutorial: dedecms tutorial

The above is the detailed content of How to use the Dreamweaver tag code Channel tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn