找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 203|回复: 0

[cms教程] 织梦autoindex应用 dedecms循环中判断第几条数据

[复制链接]

该用户从未签到

发表于 2020-2-18 11:12:40 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
   
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条时输出 ,否则输出空 循环到第几条加条线同理 {dede:list pagesize='40' orderby='id'} [*,[url=,[field:title /][/url] [...

   
内容已隐藏,请关注公众号输入验证码查看

               
验证码 

  

本帖支持关注公众号查看

【无套路  无套路  无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】

回复

使用道具 举报

网站地图|页面地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2025-6-22 02:42

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表