{eyou:arclist typeid='264' titlelen='70' row='3' } {eyou:if condition="$i%2 =='0'"} <img src="{$field.litpic}"> {$field.title} {eyou:else /} {$field.title} <img src="{$field.litpic}"> {/eyou:if} {/eyou:arclist}
標簽實現如果是偶數,圖片在上,字在下,否則,相反。
{eyou:arclist typeid='121' limit='0,10' mod='3'} <li {eyou:eq name='mod' value='0'}class="樣式名"{/eyou:eq}> <a href='{$field.arcurl}'>{$field.title}</a> </li> {/eyou:arclist}
上面是每個3行輸出一個class