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

How to use the Dreamweaver tag code Channel tag

王林
Release: 2019-11-08 14:23:37
Original
2390 people have browsed it

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=''}
Copy after login

Custom style template (InnerText)

{/dede:channel}
Copy after login

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(仅表示栏目的网址)
Copy after login

Example:

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template