首页 > 教程福利 > dedecms教程 >

DEDECMS自动编号(序号)autoindex属性

金聪采编分享 1178
[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}
 
自增1
 
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]
channelartlist  从0开始 {dede:global name=itemindex runphp='yes'}@me=@me-1;{/dede:global}
 
<div id="h_pd_lm_{dede:global.itemindex/}" {dede:global name='itemindex' runphp='yes'}@me=(@me==1)?'':'style="display:none;"';{/dede:global} class="pd2_lmc_l1">

相关推荐

词霸天下38000词汇速记全集(完全版)

福利经验

教育培训机构30条朋友圈招生实用文案,赶快收藏

商业模式

凹凸社区APP源码蜜桃社区源码+视频搭建教程

管理系统

最新X站自动采集网站源码,久草影视系统源码PHP视频网站程序

管理系统

免费QQ在线查绑(旧公库)源码引流必备源码

管理系统

热门图文

上一篇:织梦dedecms实现键盘方向键翻页效果的方法

下一篇:Dedecms v5.7 CKEditor编辑器回车将br和div改了p的解决方法