1
[field:global name=autoindex runphp=
"yes"
]
2
if
(@me%2==0)@me=
" class="mar20">"
;
3
else
@me=
">"
;
4
[/field:global]
这个参数可以应用于DEDE的有规律的列表输出,不仅可以加在{/dede:arclist}前,还可以加在调用的任何一个地方,控制CSS的输出,不仅可以应用于arclist,还可以应用于list,
写法都是一样的应用于arclist1
{dede:arclist typeid=
'23'
limit=
'0,10'
titlelen=
'28'
}
2
<li[field:global name=autoindex runphp=
"yes"
]
if
(@me%2==0)@me=
">"
;
else
@me=
" class="mr10">"
;[/field:global]
3
<a href=
"[field:arcurl/]"
><img src=
"[field:litpic/]"
alt=
"[field:fulltitle/]"
><span>[field:title/]</span></a></li>
4
{/dede:arclist}
应用于list1
{dede:list pagesize=
'36'
}
2
<dl><dt><img src=
"/img/lby_06.jpg"
width=
"9"
height=
"9"
/> <a href=
"[field:arcurl/]"
target=
"_blank"
>[field:title/]</a></dt>
3
<
dd
>[field:pubdate
function
=
"GetDateMK(@me)"
/]</
dd
></dl>
4
[field:global name=autoindex runphp=
"yes"
](@me%6)? @me=
""
:@me=
"</div><div class="lby1_3">"
;[/field:global]
5
{/dede:list}
6
<li[field:global name=autoindex runphp=
"yes"
]
if
(@me%2==0)@me=
">"
;
else
@me=
" class="mr10">"
;[/field:global]
7
<a href=
"[field:arcurl/]"
><img src=
"[field:litpic/]"
alt=
"[field:fulltitle/]"
><span>[field:title/]</span></a></li>