Home >CMS Tutorial >DEDECMS >How does the Dreamweaver tag channel implement the list page to call the subclass of the current column?

How does the Dreamweaver tag channel implement the list page to call the subclass of the current column?

藏色散人
藏色散人Original
2019-12-21 10:01:491755browse

How does the Dreamweaver tag channel implement the list page to call the subclass of the current column?

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=&#39;son&#39; row=&#39;10&#39; currentstyle="<li class=&#39;hover&#39;><a href=&#39;~typelink~&#39; ~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=&#39;son&#39; row=&#39;10&#39;} 
<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=&#39;top&#39; row=&#39;8&#39; currentstyle="<li><a href=&#39;~typelink~&#39; class=&#39;thisclass&#39;>~typename~</a> </li>"} 
<li><a href=&#39;[field:typelink/]&#39;>[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=&#39;top&#39;} 
<a href=&#39;[field:typelink /]&#39;>[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!

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