global.autoindex dede:global.itemindex 获取子栏目自动排序序
时间:2014-07-09
{dede:channel row='6' typeid=7 }
[field:global.autoindex runphp='yes']
if(@me==2 || @me==5)@me = ' <li style="border:none;">';
else @me = ' <li>';
[/field:global.autoindex]
<a href='http://www.5loveb.com/[field:typelink/]'>[field:typename/]</a> </li>
{/dede:channel}
{dede:channelartlist}
<div class="channel_boxa">
<div class="channel_boxb"><a href="http://www.5loveb.com/{dede:field name='typeurl'/}">{dede:field name='typename'/}{dede:global name=itemindex /} 或者 {dede:global.itemindex/}</a></div>
{/dede:channelartlist}
{dede:channelartlist}
{dede:global.itemindex runphp='yes'}
if((@me%2)==0)@me = "<div class='channel_boxa'>";
else @me = "<div class='channel_boxb'>";
{/dede:global.itemindex}
{/dede:channelartlist}