[织梦CMS教程] 织梦autoindex的用法大全,在各个标签中运用

[复制链接]
查看2188 | 回复7 | 2019-5-25 20:04:54 | 显示全部楼层 |阅读模式
下面来说一个在织梦dedecms列表页我们可以使用autoindex和itemindex来实现多种样式的用法    大家在使用autoindex的时候有时候从1开始,有时候从0开是,下面介绍下什么情况下从0,1开始:   autoindex/itemindex 可以使用 @me+1;  更改数字自由定义开始的数字  不懂往下看       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}
 织梦cms建站教程从入门到精通,自由织梦网www.freedede.cn长期免费更新教程,图文结合dedecms建站教程经验,内容包含使用织 梦CMS、做模板、写采集规则、做插件模块,是学习织梦产品的最佳去处。
回复

使用道具 举报

_阿乐哥哥 | 2021-1-13 11:10:17 | 显示全部楼层
资源太多了,准备办个会员
回复

使用道具 举报

润唇膏贡 | 2021-11-2 19:43:17 | 显示全部楼层
厉害了,悟空源码资源多教程多!
回复

使用道具 举报

唐伯狼乌 | 2021-12-17 19:21:08 | 显示全部楼层
找了好多地方,终于找到了
回复

使用道具 举报

未来看得见吗敲 | 2022-2-13 04:07:33 | 显示全部楼层
找了好多地方,终于找到了
回复

使用道具 举报

聪明牛得 | 2023-2-3 06:33:59 | 显示全部楼层
很不错的资源站
回复

使用道具 举报

海上灵光Y8 | 2023-11-29 19:42:02 | 显示全部楼层
这个下载站资源真齐全
回复

使用道具 举报

加油!悟空源码,继续努力!支持你!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则