本講的內(nèi)容是接著昨天的教程拓展而來,有興趣的朋友可以先參看昨天的織夢模板的教程。
[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global]
{dede:global name=itemindex runphp="yes"}@me=@me+1;{/dede:global}autoindex itemindex 的使用區(qū)別
channelartlist 標(biāo)簽下使用
{dede:global name='itemindex' runphp='yes'}@me;{/dede:global}自增1
1、arclist 標(biāo)簽下使用
[field:global.autoindex/]
默認(rèn)從1開始
2、channel 標(biāo)簽下使用
[field:global.autoindex/]
默認(rèn)從0開始
3、channelartlist 標(biāo)簽下使用
{dede:global.itemindex/}默認(rèn)從1開始
4、arclist 從0開始
[field:global name=autoindex runphp="yes"]@me=@me-1;[/field:global]
5、channel 從1開始
[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global][field:typename/]
6、channelartlist 從0開始
{dede:global name=itemindex runphp='yes'}@me=@me-1;{/dede:global}完成。
新聞熱點
疑難解答
圖片精選