dedecms获取当前栏目id方法,代码如下:
 
{dede:field.typeid runphp=’yes’ function=”GetTopid(@me)”} $dsql = new DedeSql(false); $a=”SELECT id FROM 5just_arctype where id=@me”; $arcRow = $dsql->GetOne($a); @me=$arcRow[id]; {/dede:field.typeid}