这个能实现递增,可以实现从2开始的{wmd:global.itemindexrunphp='yes'}@me=$GLOBALS['itemindex']+1;{/wmd:global.itemindex}
autoindex itemindex 的使用心得
区别
channelartlist 标签下使用 {wmd:global name='itemindex' runphp='yes'}@me;{/wmd:global}
channel 标签下使用 [field:global name=autoindex/]
在arclist中使用autoindex runphp 时用这种方式:
{wmd:arclist titlelen='22' row='4' flag='c' orderby='id'}<a href="[field:arcurl /]" target="_blank">[field:title /]</a>[field:global name='autoindex' runphp='yes']if(@me==2){@me="<br />";}else{@me=' ';}[/field:global]
{/wmd:arclist}
如何自由定义 开始的数字
autoindex/itemindex 可以使用 @me+1;实现由指定数字开始
遇到类似的问题做下这个笔记,在用到的时候可以灵活发挥!
list 标签下试用autoindex
{wmd: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
{wmd:global.itemindex runphp='yes'}(@me!=7)? @me="":@me="style='left:-150px'";{/wmd:global.itemindex}
如何等于5,就什么也不显示
{wmd:global.itemindex runphp='yes'}(@me!=5)? @me=" | ":@me="";{/wmd:global.itemindex}



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)