校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 網(wǎng)站建設 > 建站知識 > dede有關(guān)autoindex的詳細介紹

dede有關(guān)autoindex的詳細介紹

POST TIME:2021-05-10 10:51

這個能實現(xiàn)遞增,可以實現(xiàn)從2開始的{dede:global.itemindexrunphp='yes'}@me=$GLOBALS['itemindex']+1;{/dede:global.itemindex}

autoindex itemindex 的使用心得

區(qū)別

channelartlist 標簽下使用 {dede:global name='itemindex'runphp='yes'}@me;{/dede:global}

channel 標簽下使用 [field:global name=autoindex/]

在arclist中使用autoindex runphp 時用這種方式:

{dede:arclist titlelen='22' row='4' flag='c' orderby='id'}<a href="[field:arcurl /]" target="_blank">[field:title /]</a>[field:global name='autoindex' runphp='yes']if(@me==2){@me="<br />";}else{@me=' ';}[/field:global]
{/dede:arclist}

如何自由定義 開始的數(shù)字
autoindex/itemindex 可以使用 @me+1;實現(xiàn)由指定數(shù)字開始

遇到類似的問題做下這個筆記,在用到的時候可以靈活發(fā)揮!

list 標簽下試用autoindex

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

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


runphp型

[field:global name=autoindex runphp="yes"](@me!=7)? @me="&nbsp;|&nbsp;":@me="";[/field:global]

數(shù)字序號型

其他用法,如果等于7,就顯示style
{dede:global.itemindex runphp='yes'}(@me!=7)? @me="":@me="style='left:-150px'";{/dede:global.itemindex}

如何等于5,就什么也不顯示
{dede:global.itemindex runphp='yes'}(@me!=5)? @me="&nbsp;|&nbsp;":@me="";{/dede:global.itemindex}




收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
主站蜘蛛池模板: 兴化市| 葵青区| 和平县| 阿坝| 任丘市| 襄樊市| 衡阳市| 富顺县| 五大连池市| 聊城市| 阿尔山市| 阳高县| 临洮县| 湖州市| 临城县| 绵竹市| 泽普县| 象山县| 白河县| 无棣县| 泌阳县| 永仁县| 三河市| 都安| 古田县| 新乡市| 蒙城县| 碌曲县| 长阳| 高邑县| 澄江县| 天门市| 福州市| 巫山县| 丹江口市| 奎屯市| 静乐县| 陕西省| 剑川县| 英超| 凉城县|