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='[field:typelink /]'>[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!