国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > CMS > 織夢(mèng)DEDE > 正文

織夢(mèng)CMS系統(tǒng)標(biāo)簽autoindex和itemindex

2024-07-09 22:52:12
字體:
供稿:網(wǎng)友
  1. [field:global name=autoindex runphp="yes"]@[email protected]+1;[/field:global]
  2. {dede:global name=itemindex runphp="yes"}@[email protected]+1;{/dede:global}

autoindex   itemindex 的使用心得區(qū)別  

  1. channelartlist 標(biāo)簽下使用 {dede:global name='itemindex' runphp='yes'}@me;{/dede:global}
  2. arclist            標(biāo)簽下使用 [field:global.autoindex/] 默認(rèn)從1開始
  3. channel         標(biāo)簽下使用 [field:global.autoindex/] 默認(rèn)從0開始
  4. channelartlist 標(biāo)簽下使用 {dede:global.itemindex/}  默認(rèn)從1開始
  5. arclist  從0開始 [field:global name=autoindex runphp="yes"]@[email protected];[/field:global]
  6. channel  從1開始 [field:global name=autoindex runphp="yes"]@[email protected]+1;[/field:global][field:typename/]
  7. channelartlist  從0開始 {dede:global name=itemindex runphp='yes'}@[email protected];{/dede:global}

=====================================================================================

  1. <div id="h_pd_lm_{dede:global.itemindex/}" {dede:global name='itemindex' runphp='yes'}@me=(@me==1)?'':'style="display:none;"';{/dede:global} class="pd2_lmc_l1">
  2. {dede:channelartlist  notypeid='123,124,146,147'}
  3. <a class="pd2_lmt{dede:global name=itemindex runphp='yes'}@me=(@me==1)?'1':'3';{/dede:global}" onmouseover="showitem2({dede:global name=itemindex runphp='yes'}@[email protected];{/dede:global},'pd_lm','h_pd_lm_','pd2_lmt');" href='{dede:field name='typeurl'/}'>
  4. {dede:php}if($refObj->Fields['ispart']){echo $refObj->Fields['typename'];}{/dede:php}
  5. </a>{/dede:channelartlist}

channel 標(biāo)簽下使用 [field:global name=autoindex/]  

  1. {dede:channel titlelen='32'}
  2. <li [field:global name='autoindex' runphp='yes']if(@me%2==0){@me='class="rr"';}else{@me='';}[/field:global] ><h3><a href='[field:typelink/]'>[field:typename/]</a></h3></li>
  3. {/dede:channel}

在arclist中使用autoindex runphp 時(shí)用這種方式:

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

自增1

  1. [field:global.autoindex/]
  2. {dede:arclist channelid=17 row=6 orderby=pubdate titlelen=40 addfields='docphoto,docjob,doctec' typeid='123,136,146,155,172,182,202'}
  3. <div id="h_nrr_zj_[field:global.autoindex/]" class="nrr_zjl" [field:global name='autoindex' runphp='yes']if(@me==1){@me="";}else{@me='style="display:none;"';}[/field:global] >
  4. <div><a href="[field:arcurl/]" title="[field:fulltitle/]" target="_blank"><img src="[field:litpic/]" alt="[field:fulltitle/]" /></a></div>
  5. </div>
  6. {/dede:arclist}

如何自由定義 開始的數(shù)字 

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

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

list 標(biāo)簽下試用autoindex

  1. {dede:list pagesize='40' orderby='id'}
  2. [field:global name='autoindex' runphp='yes']if(@me%10==0){@me="test";}else{@me='';}[/field:global] 
  3. {/dede:list}
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 稻城县| 徐州市| 赣州市| 健康| 洛扎县| 安化县| 眉山市| 工布江达县| 威宁| 仲巴县| 北辰区| 盈江县| 芦溪县| 山丹县| 舟山市| 措勤县| 鸡西市| 德格县| 新竹县| 翁牛特旗| 安仁县| 六盘水市| 枣阳市| 陆良县| 东兰县| 兴海县| 阿拉善盟| 郎溪县| 化州市| 巴南区| 长兴县| 霞浦县| 左权县| 富宁县| 菏泽市| 扎兰屯市| 光山县| 元阳县| 金塔县| 韩城市| 香港 |