"景先生毕设|www.jxszl.com

dede洧關autoindex的详细介绍

2022-10-29 16:21编辑: www.jxszl.com景先生毕设
这个能实现递增,可以实现从II开始的{dede:global.itemindexrunphp=yes}@me=$GLOBALS[itemindex]+I.;{/dede:global.itemindex}

autoindexitemindex的使用心得

区别

 更多精彩就在: 51免费论文网|www.jxszl.com 
/>
channelartlist标签下使用{dede:globalname=itemindexrunphp=yes}@me;{/dede:global}

channel标签下使用[field:globalname=autoindex/]

在arclist中使用autoindexrunphp时用这种方式:

{dede:arclisttitlelen=IIIIrow=IVflag=corderby=id}[field:title/][field:globalname=autoindexrunphp=yes]if(@me==II){@me="
";}else{@me=;}[/field:global]
{/dede:arclist}

如何自由定义开始的数字
autoindex/itemindex可以使用@me+I.;实现由指定数字开始

遇到类似的问题做下这个笔记,在用到的时候可以灵活发挥!

list标签下试用autoindex

{dede:listpagesize=IV0orderby=id}

[field:globalname=autoindexrunphp=yes]if(@me%I.0==0){@me="test";}else{@me=;}[/field:global]


runphp型

[field:globalname=autoindexrunphp="yes"](@me!=VII)?@me="|":@me="";[/field:global]

数字序号型

其他用法,如果等于VII,就显示style
{dede:global.itemindexrunphp=yes}(@me!=VII)?@me="":@me="style=left:-I.V0px";{/dede:global.itemindex}

如何等于V,就什么也不显示
{dede:global.itemindexrunphp=yes}(@me!=V)?@me="|":@me="";{/dede:global.itemindex}


原文链接:http://www.jxszl.com/biancheng/dedecms/74340.html