How does the Dreamweaver tag channel call the subclass of the current column on the list page?
The Dreamweaver tag channel implementation list page calls the subclass of the current column
This article mainly introduces the Dreamweaver tag channel implementation list page to call the current column For subcategories, friends who need it can refer to
Recommended learning: 梦Weavercms
The code is as follows:
{dede:channel type='son' row='10' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>"} <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-19"><a href="[field:typeurl/]">[field:typename/]</a></li> {/dede:channel}
Simplified to --->>>
The code is as follows:
{dede:channel type='son' row='10'} <li ><a href="[field:typeurl/]">[field:typename/]</a></li> {/dede:channel}
Analysis:
Tag name: channel
Tag introduction: Dreamweaver Commonly used tags, usually used at the top of the website to obtain site column information, to facilitate website members to browse the entire site information by category
Function description: used to obtain the column list
Scope of application: global use
Basic syntax:
The code is as follows:
{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}
Parameter description:
typeid = '0' Column ID
reid = '0' Superior Column ID
row = '100' Call column number
col = '1' How many columns to display (default is single column)
type = 'son | sun' son Represents subordinate columns, self represents same-level columns, top top-level column
currentstyle = '' Application style
Underlying template fields:
ID (same as id), typeid, typelink , typename, typeurl, typedir (only the URL of the column)
Example:
The code is as follows:
{dede:channel type='top'} <a href='[field:typelink /]'>[field:typename/]</a> {/dede:channel}
Note: When typeid is not specified, the type tag is the same as It 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
The above is the detailed content of How does the Dreamweaver tag channel implement the list page to call the subclass of the current column?. For more information, please follow other related articles on the PHP Chinese website!