打开/include/channelunit.func.php文件
在里面加入下面代码
//织梦模板联动类型function GetInfoType($infotype){global $dsql;$typename='';$query = " Select ename From [url=mailto:`dede_sys_enum]`dede_sys_enum[/url]` where egroup = 'infotype' And evalue = '$infotype' ";$dsql->Execute('ename',$query);while($row=$dsql->GetArray('ename')){$typename .=($typename=='' ? $row['ename'] : ','.$row['ename']);$typelink = "<a href='$cfg_phpurl/plus/list.php?channelid=-8&infotype=$infotype'>$typename</a>";}return $typelink;}
前端调用
[field:infotype function='GetInfoType(@me)'/]