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='[field:typeurl/]'>[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='son' noself='yes'} <li><a href="[field:typelink/]">[field:typename/]</a></li> {/dede:channel}
Call at will:
The code is as follows:
{dede:channel type='son' typeid=‘栏目ID’ noself='yes'} <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!