织梦autoindex的用法大全,茬各个标签中运用
大家在使用autoindex的时候有时候从I.开始,有时候从0开是,下面介绍下什么情况下从0,I.开始:
autoindex/itemindex可以使用
更多精彩就在: 51免费论文网|www.jxszl.com
@me+I.;更改数字自由定义开始的数字不懂往下看
arclist标签下使用[field:global.autoindex/]默认从I.开始
{dede:arclistrow=I.0titlelen=IVVIIItypeid=I.channelid=I.}
从I.开始:[field:globalrunphp=yesname=autoindex][/field:global]或者[field:global.autoindex/]
从0开始:[field:globalrunphp=yesname=autoindex]@me=@me-I.;[/field:global]
{/dede:arclist}
channel标签下使用[field:global.autoindex/]默认从0开始
{dede:channelrow=Vtype=top}
从0开始:[field:globalrunphp=yesname=autoindex][/field:global]或者[field:global.autoindex/]
从I.开始:[field:globalrunphp=yesname=autoindex]@me=@me+I.;[/field:global]
{/dede:channel}
channelartlist标签下使用{dede:global.itemindex/}默认从I.开始
{dede:channelartlistrow=IV}
从I.开始:{dede:globalname=itemindexrunphp=yes}{/dede:global}或者{dede:global.itemindex/}
从I.开始:{dede:globalname=itemindexrunphp=yes}@me=@me-I.;{/dede:global}
{/dede:channelartlist}
list到第I.0条时输出
,否则输出空
循环到第几条加条线同理
{dede:listpagesize=IV0orderby=id}
[field:globalname=autoindexrunphp=yes]if(@me%I.0==0){@me="
";}else{@me=;}[/field:global]
{/dede:list}
原文链接:http://www.jxszl.com/biancheng/dedecms/74819.html