根据id判断
{dede:channelartlist type ='top' typeid='1,2,3,4,5,6,7' currentstyle='active' }
<li class="ht">
{dede:field name='typeid' runphp='yes'}
if(@me==1 || @me == 2 || @me == 6 || @me == 7)
@me='<a class="a" href="javascripg:void(0);">';
else
@me='<a class="a" href="list.php?tid='.@me.'">';
{/dede:field}
<!-- <a class="a" href="list.php?tid={dede:field.id/}"> -->
<span class="fl">{dede:field name='typename'/}</span>
<i class="fr"><img src="/style/m/images/go.png" alt=""></i>
</a>
<div class="list">
{dede:channel type='son' noself='yes' }
<a href="list.php?tid=[field:id/]">[field:typename/]</a>
{/dede:channel}
</div>
</li>
{/dede:channelartlist}
判断下标
{dede:channelartlist typeid='3'}
{dede:global name=itemindex runphp='yes'}
$a="<li class='frist'>";
$b="<li class='clear'>";
if(@me==1){@me=$a;}
else{@me=$b;}
{/dede:global}
</li>
{/dede:channelartlist}