Ingenious Dream Label Field signed {Dede:field name= function=}
Use the background:
For the sake of the customer, the author of the article under x Classification was designed to be the ID number of the article under the Y category, and then the title was queried according to the ID number of the y category article, which is the name of the X category author.
One, modify the background article List template dede\templets\content_list.htm, in the corresponding location plus
<td>{dede:field name= ' writer ' function= "Get_writer (@me)"/}</td>
Second, add a function to add a get_writer function to the include/extend.func.php
function Get_writer ($a) {global $dsql; $row = $dsql->getone ("Select title from #@__archives where id= ' $a '"); $b = $row [' title '];return $b;}
Three, dede/ content_list.php This file 208 lines to increase Arc.writer, calls to Fields
This article is from the "Shanghai Blue Snail Network" blog, please be sure to keep this source http://viqecel.blog.51cto.com/10859227/1717332
Weave Dream dedecms Background article list show Author field methods