1、打开include/taglib.type.lib.php,在里面添加以下代码
1
2
3
4
5
$row['parent_name'] = '';
if($row['topid']){
$row1 = $dsql->GetOne("select typename as parent_name from dede_arctype where id ='".$row['topid']."'");
$row['parent_name'] = $row1['parent_name'];
}
2、在type标签中,直接调用即可。
{dede:type typeid=''}[field:parent_name/]{/dede:type}