# {dede:global.cfg_webname/}

- 首页
{dede:channelartlist typeid='top'}
- {dede:field name='typename'/} {dede:php} $thisid = $refObj->Fields['id']; $dsql->SetQuery("Select * from `dede_arctype` where reid=".$thisid." ORDER BY sortrank"); $dsql->Execute(); $i=0; while($arr = $dsql->getArray()){ $i = $i +1; $str = implode(',',$arr); if(!empty($str) && $i==1){ echo '
  '; } } {/dede:php} {dede:channel type='son'}
  - [field:typename/]
  {/dede:channel} {dede:php} $thisid = $refObj->Fields['id']; $dsql->SetQuery("Select * from `dede_arctype` where reid=".$thisid." ORDER BY sortrank"); $dsql->Execute(); while($arr = $dsql->getArray()){ $str = implode(',',$arr); } if(!empty($str)) echo '
  '; {/dede:php}
{/dede:channelartlist}