dedecms文章页获取显示副栏目的代码写法

dedecms文章页获取显示副栏目的代码写法
mark一下

            {dede:field.typeid2   runphp='yes'}
             global $dsql;
             $ks = split(',', @me);
             $type2name="";
             foreach($ks as $k){
               $k = trim($k);
               if ($k!="") {
                 if ($row = $dsql->getOne("select *,ID as id1 from #@__arctype where id=".$k)){
                   $type_path=GetTypeUrl($row['id1'],MfTypedir($row['typedir']),$row['isdefault'],$row['defaultname'],$row['ispart'],$row['namerule2'],$row['siteurl']);
                   $type2name.="
  • ".$row['typename']."
  • "; } } } @me=substr($type2name,0,strlen($type2name)-1); {/dede:field.typeid2}

    你可能感兴趣的:(dedecms)