How does the dede:channel tag support calling subcolumn description description and keyword keywords
Editor to share with you how the dede:channel tag supports the call sub-column description of description and the keyword keywords, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How does the dede:channel tag support calling sub-column description description and keyword keywords?
Dede:channel tags do not support calling keywords and column descriptions of sub-columns. Sometimes we need users and need to simply modify the file, as follows:
Recommended study: dream weaving cms
Line 86 of the include\ taglib\ channel.lib.php file (note that there are multiple sql statements, preferably all replaced)
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
Add, keywords,description, at the end, as follows
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,keywords,description
In the template (for example, use flexibly according to your own code):
{dede:channel type='son' row='6' typeid='4'} [field:typename/]-- [field:keywords/]-- [field:description /] {/ dede:channel} above is how the dede:channel tag supports calling all the contents of the sub-column describing description and the keyword keywords. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!