{dede:channelartlist}
[field:global name=autoindex runphp="yes"](@me%2==0)? @me="<div class=global_module box_r>":@me="<div class=global_module>";[/field:global]
{dede:arclist titlelen=’40′ row=’11′}
<a href="[field:arcurl /]" title="[field:title/]" target="_blank">[field:title /]</a>
{/dede:arclist}
</div>
{/dede:channelartlist}
循环生产列表,判断第二个就 加个样式<div class=global_module box_r>,否则就<div class=global_module>
貌似 不行,直接输出到页面显示的是
[field:global name=autoindex runphp="yes"](@me%2==0)? @me="":@me="";[/field:global]
解决方法
[field:global name=autoindex runphp='yes']@me=$GLOBALS['autoindex']%2==0?’<div class="global_module box_r">’:’<div class="global_module">’;[/field:autoindex]