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

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

藏色散人
Release: 2019-12-14 10:43:40
Original
2398 people have browsed it

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}
Copy after login

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}
Copy after login

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}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template