校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 網站建設 > 建站知識 > 織夢自增函數autoindex和itemindex使用區別介紹

織夢自增函數autoindex和itemindex使用區別介紹

POST TIME:2021-05-23 02:56

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}




收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
主站蜘蛛池模板: 榆林市| 三台县| 敦煌市| 济源市| 博客| 加查县| 区。| 南昌市| 新宾| 哈尔滨市| 裕民县| 友谊县| 垣曲县| 郧西县| 奉节县| 平武县| 曲阳县| 麻阳| 泌阳县| 和硕县| 浦城县| 错那县| 集贤县| 稻城县| 安西县| 重庆市| 高淳县| 香格里拉县| 宁南县| 道孚县| 民丰县| 兰坪| 石嘴山市| 临潭县| 宁海县| 常德市| 城市| 潼关县| 邯郸市| 沙洋县| 敖汉旗|