{/dede:sonchannel}" ."/> {/dede:sonchannel}" .">

Home  >  Article  >  CMS Tutorial  >  How does dedecms call the sub-column of the current column?

How does dedecms call the sub-column of the current column?

藏色散人
藏色散人Original
2019-12-14 10:43:402337browse

How does dedecms call the sub-column of the current column?

dedecmsHow to call the sub-column of the current column?

dedecms must be familiar to everyone. It is an article CMS system that is widely used in China. During use, we may need to call the sub-column of the current column, so how should we operate it? , let’s share 2 methods

Recommended learning:梦Weavercms

Method 1: You can call the sub-column of the current column.

Function description: sub-column call tag

Applicable scope: global use

Basic syntax:

The code is as follows:

{dede:sonchannel}
<a href=&#39;[field:typeurl/]&#39;>[field:typename/]</a>
{/dede:sonchannel}

Parameters Description:

row ='100' Return number

col = '1' Default single column display

nosonmsg = '' No information content displayed in the ID sub-column is specified

Method 2: Call the sub-column of the current column

Function description: Sub-column calling tag

Applicable scope: global use

Basic syntax:

The code is as follows:

{dede:channel type=&#39;son&#39; noself=&#39;yes&#39;}
<li><a href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}

Call at will:

The code is as follows:

{dede:channel type=&#39;son&#39; typeid=‘栏目ID’ noself=&#39;yes&#39;}
<li><a href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}

The above is the detailed content of How does dedecms call the sub-column 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