您现在的位置是:网站首页>建站学院织梦CMS
织梦autoindex应用 dedecms循环中判断第几条数据
2020-04-26来源: 【织梦CMS】
人已围观
简介 arclist 标签下使用 [field:global.autoindex/] 默认从1开始 {dede:arclist row='10' titlelen='48' typeid='1' channelid='1'} 从1开始:[fi
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:global runphp='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:global runphp='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}
很赞哦! ()
猜您喜欢
相关文章
付费说明
1、安装cms后台,费用是200,基础费用200包括后台调试以及部分页面模板修改.
2、请加我个人微信 634626966,或者扫一扫微信二维码。备注“网站”
3、系统安装只限定于帝国cms,并且支持php,虚拟主机,请选择linux系统
4、【收费说明】制作企业网站,我是这么收费的!