$sql_filed = 'SELECT `fieldname` AS `columnname`,`description` AS `chinesename` FROM `sline_extend_field` WHERE `typeid` = '.$typeid.' AND `isopen` = 1';
$rows = DB::query(1, $sql_filed)->execute()->as_array();
$temp = array();
foreach ($rows as $row)
{
$row['isrealfield'] = 0;
$temp[] = array(
'columnname' => $row['columnname'],
'chinesename' => $row['chinesename'],
'isrealfield' => 1,
);
}
$arr = array_merge($arr, $temp);
在代码文件中找到taglib/detailcontent.php文件,把上面的代码放在图片中圈出来的位置.详情页就可以显示扩展字段了.
会员评论