Home  >  Article  >  CMS Tutorial  >  How does the dede:channel tag support calling sub-column description description and keywords?

How does the dede:channel tag support calling sub-column description description and keywords?

藏色散人
藏色散人Original
2019-12-14 09:51:222015browse

How does the dede:channel tag support calling sub-column description description and keywords?

##dede: How does the channel tag support calling sub-column description description and keywords?

dede: The channel tag does not support calling the keywords and column descriptions of sub-columns. Sometimes we need users and need to simply modify the file, as follows:

Recommended learning:

Dreamweavercms

include\taglib\channel.lib.php file line 86 (note that there are multiple sql statements, it is best to replace them all)

$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath

In Add keywords and description later to become the following

$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,keywords,description

in the template (for example, use it flexibly according to your own code):

{dede:channel type='son'  row='6'  typeid='4'}
<a href="[field:typeurl/]">[field:typename/]——[field:keywords/]——[field:description /]</a>
{/dede:channel}

The above is the detailed content of How does the dede:channel tag support calling sub-column description description and keywords?. 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