muban大师 发表于 2020-9-6 09:42:21

autoindex,itemindex 的使用心得

autoindex   itemindex 的使用心得
       
        区别
       
        channelartlist 标签下使用 {dede:global name='itemindex' runphp='yes'}@me;{/dede:global}
       
        channel 标签下使用
       
        在arclist中使用autoindex runphp 时用这种方式:
       
        {dede:arclist titlelen='22' row='4' flag='c' orderby='id'}[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,
       
        {/dede:list}
页: [1]
查看完整版本: autoindex,itemindex 的使用心得