Skip to main content
 Web开发网 » 站长学院 » 织梦教程

autoindex,itemindex 的使用心得

2020年09月12日11980百度已收录

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'}<a href="[field:arcurl /]" target="_blank">[field:title /]</a>[field:global name='autoindex' runphp='yes']if(@me==2){@me="<br />";}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}


 

评论列表暂无评论
发表评论
微信