织梦自增函数autoindex和itemindex使用区别介绍

2022-08-18

autoindex/itemindex 可以使用 @me+1;实现由指定数字开始,下面为大家详细介绍下具体的两者具体的用法。

让dedecms autoindex,itemindex 从0到1开始的办法

    [field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global]

    {dede:global name=itemindex runphp="yes"}@me=@me+1;{/dede:global}

autoindex itemindex 的使用心得区别

channelartlist 标签下使用 {dede:global name='itemindex' runphp='yes'}@me;{/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"]@me=@me-1;[/field:global]

channel从1开始

[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global][field:typename/]

channelartlist 从0开始

{dede:global name=itemindex runphp='yes'}@me=@me-1;{/dede:global}

非凡技术导航 优秀网址导航免费网站收录 网站地图

本站收录的网站若侵害到您的利益,请联系我们删除处理

Copyright ©2020 Guojiz V 5.5All Rights Reserved.

备案号 )| 1735737677|