名称 {dede:field.typeidfunction="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); } }