$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文件,把上面的代碼放在圖片中圈出來(lái)的位置.詳情頁(yè)就可以顯示擴(kuò)展字段了.
會(huì)員評(píng)論