arclist 标签下使用 [field:global.autoindex/] 默认从1开始

{dede:arclist row='10' titlelen='48' typeid='1' channelid='1'}

从1开始:[field:global runphp='yes' name=autoindex][/field:global]或者[field:global.autoindex/]

从0开始:[field:globalrunphp='yes' name=autoindex]@me=@me-1;[/field:global]

{/dede:arclist}

channel 标签下使用 [field:global.autoindex/] 默认从0开始

{dede:channel row='5' type='top'}

从0开始:[field:global runphp='yes' name=autoindex][/field:global]或者[field:global.autoindex/]

从1开始:[field:globalrunphp='yes' name=autoindex]@me=@me+1;[/field:global]

{/dede:channel}

channelartlist 标签下使用 {dede:global.itemindex/} 默认从1开始

{dede:channelartlist row='4'}

从1开始:{dede:global name=itemindex runphp='yes'}{/dede:global}或者{dede:global.itemindex/}

从1开始:{dede:global name=itemindex runphp='yes'}@me=@me-1;{/dede:global}

{/dede:channelartlist}

list到第10条时输出<br/>,否则输出空

循环到第几条加条线同理

{dede:list pagesize='40' orderby='id'}

<li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></li>

[field:global name='autoindex' runphp='yes']if(@me%10==0){@me="<br/>";}else{@me='';}[/field:global]

{/dede:list}

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。