这个能实现递增,可以实现从2开始的{dede:global.itemindexrunphp='yes'}@me=$GLOBALS['itemindex',+1;{/dede:global.itemindex} autoindex itemindex 的使用心得 区别 channelartlist 标签下使用 {dede:global name='itemindex' runphp='yes'}@me;{/dede:global} channel 标签下使用 [field:global name=autoindex/] 在arclist中使用autoindex runphp 时用这种方式: {dede:arclist titlelen='22' row='4' flag='c' orderby='id'}[url=,[field:title /][/url][field:global name='autoindex' runphp='yes',if(@me==2){@me=" ";}else{@me=' ';}[/field:global, {/dede:arclist} 如何自由定义 开始的数字 autoindex/itemindex 可以使用 @me+1;实现由指定数字开始 遇到类似的问题做下这个笔记,在用到的时候可以灵活发挥! list 标签下试用autoindex {dede:list pagesize='40' orderby='id'} [field:global name='autoindex' runphp='yes',if(@me%10==0){@me="test";}else{@me='';}[/field:global, runphp型 [field:global name=autoindex runphp="yes",(@me!=7)? @me=" | ":@me="";[/field:global, 数字序号型 其他用法,如果等于7,就显示style {dede:global.itemindex runphp...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|