dedecms文章列表加上序号效果
先看效果
在上代码
{dede:arclist orderby=pubdate type=
'commend.'
titlelen=
'26'
row=
'10'
channel=3}
<li>
[field:
global
runphp=
'yes'
name=autoindex]
$a
=
"<span class='num hui'>"
;
$b
=
"</span>"
;
$c
=
"<span class='num'>"
;
if
(@me > 3) @me =
$c
.@me.
$b
;
else
@me =
$a
.@me.
$b
;
[/field:
global
]
<span
class
=tit><a title=
"[field:title/]"
href=
"[field:filename/]"
>[field:title/]</a></span>
</li>
{/dede:arclist}
清风明月本无价,近水远山皆有情。