下面來(lái)說一個(gè)在織夢(mèng)dedecms列表頁(yè)我們可以使用autoindex和itemindex來(lái)實(shí)現(xiàn)多種樣式的用法
	 
	 大家在使用autoindex的時(shí)候有時(shí)候從1開始,有時(shí)候從0開是,下面介紹下什么情況下從0,1開始:
	 
	autoindex/itemindex 可以使用 @me+1;  更改數(shù)字自由定義開始的數(shù)字  不懂往下看
	 
	 
	 
	arclist 標(biāo)簽下使用 [field:global.autoindex/] 默認(rèn)從1開始
	 
	 
	 
	{dede:arclist row='10' titlelen='48' typeid='1' channelid='1'}
	 
	從1開始:[field:global runphp='yes' name=autoindex][/field:global]或者[field:global.autoindex/]
	 
	從0開始:[field:global runphp='yes' name=autoindex]@me=@me-1;[/field:global]
	 
	{/dede:arclist}
	 
	 
	 
	channel 標(biāo)簽下使用 [field:global.autoindex/] 默認(rèn)從0開始
	 
	{dede:channel row='5' type='top'}
	 
	從0開始:[field:global runphp='yes' name=autoindex][/field:global]或者[field:global.autoindex/]
	 
	從1開始:[field:global runphp='yes' name=autoindex]@me=@me+1;[/field:global]
	 
	{/dede:channel}
	 
	 
	 
	channelartlist 標(biāo)簽下使用 {dede:global.itemindex/} 默認(rèn)從1開始
	 
	{dede:channelartlist row='4'}
	 
	從1開始:{dede:global name=itemindex runphp='yes'}{/dede:global}或者{dede:global.itemindex/}
	 
	從1開始:{dede:global name=itemindex runphp='yes'}@me=@me-1;{/dede:global}
	 
	{/dede:channelartlist}
	 
	 
	 
	list  到第10條時(shí)輸出<br/>,否則輸出空
	 
	循環(huán)到第幾條加條線同理
	 
	{dede:list pagesize='40' orderby='id'} 
	 
	<li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></li>
	 
	[field:global name='autoindex' runphp='yes']if(@me%10==0){@me="<br/>";}else{@me='';}[/field:global]  
	 
	{/dede:list}