调用代码
名称 {dede:field.typeid function="gettoptype(@me,link)"/} //链接修改 include/helpers/extend.helper.PHP
增加 :
GetOne("SELECT * FROM `dede_arctype` WHERE id=$topid"); $toptypename = $row['typename']; $toptypeurl = $topid; if($action=='id') return $topid; if($action=='name') return $toptypename; if($action=='link') return GetOneTypeUrlA($row); } }