Home > CMS Tutorial > DEDECMS > body text

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

藏色散人
Release: 2019-12-14 09:51:22
Original
2088 people have browsed it

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

In Add keywords and description later to become the following

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

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

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!

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