选主机收集整理的这篇文章主要介绍了织梦自增函数autoindex和itemindex使用区别介绍,选主机小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[email protected]+1;实现由指定数字开始,下面为大家详细介绍下具体的两者具体的用法。
让dedecms autoindex,itemindex从0到1开始的办法
[field:global name=autoindex runphp="yes"]@[email protected]+1;[/field:global]
{dede:global name=itemindex runphp="yes"[email protected][email protected]+1;{/dede:global}
autoindex itemindex的使用心得区别
channelartlist标签下使用{dede:global name='itemindex' runphp='yes'[email protected];{/dede:global}
arclist标签下使用[field:global.autoindex/]默认从1开始
channel标签下使用[field:global.autoindex/]默认从0开始
channelartlist标签下使用{dede:global.itemindex/}默认从1开始
arclist从0开始
[field:global name=autoindex runphp="yes"]@[email protected];[/field:global]
channel从1开始
[field:global name=autoindex runphp="yes"]@[email protected]+1;[/field:global][field:typename/]
channelartlist从0开始
{dede:global name=itemindex runphp='yes'[email protected][email protected];{/dede:global}