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

织梦autoindex應用 dedecms循环中判斷第几条数据

2022-10-29 16:26编辑: www.jxszl.com景先生毕设
arclist标签下使用[field:global.autoindex/]默认从I.开始

{dede:arclistrow=I.0titlelen=IVVIIItypeid=I.channelid=I.}

从I.开始:[field:globalrunphp=yes

 更多精彩就在: 51免费论文网|www.jxszl.com 
name=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:title/]


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

    {/dede:list}


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