|
1.获取dedecms织梦的循环次数,关键是[field:global.autoindex/,这个标签
复制代码
{dede:arclist typeid='3' row='8'} [field:global.autoindex/, {/dede:arclist}
2.在循环时做条件判断。例:当循环到第2条时增加一个。
复制代码
{dede:arclist typeid='3' row='8'} li class="m[field:global.autoindex/,"> a href="[field:arcurl/,">img src="[field:litpic/," />a> li> [field:global name=autoindex runphp='yes', (@me!=4)? @me="":@me="li class='on'>li>"; [/field:global, {/dede:arclist} |
|