欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來到入門教程網(wǎng)!

dedecms

當前位置:主頁 > CMS教程 > dedecms >

DedeCms織夢模板 autoindex和itemindex 使用教程

來源:本站原創(chuàng)|時間:2021-08-05|欄目:dedecms|點擊: 次

讓dedecms autoindex,itemindex 從0到1開始的辦法
[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global] {dede:global name=itemindex runphp="yes"}@me=@me+1;{/dede:global}
autoindex   itemindex 的使用心得區(qū)別  
channelartlist 標簽下使用 {dede:global name='itemindex' runphp='yes'}@me;{/dede:global}
自增1
 
arclist            標簽下使用 [field:global.autoindex/] 默認從1開始
channel         標簽下使用 [field:global.autoindex/] 默認從0開始
channelartlist 標簽下使用 {dede:global.itemindex/}  默認從1開始
 
arclist  從0開始[field:global name=autoindex runphp="yes"]@me=@me-1;[/field:global]
channel  從1開始[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global][field:typename/]
channelartlist  從0開始{dede:global name=itemindex runphp='yes'}@me=@me-1;{/dede:global}
 
 
<div id="h_pd_lm_{dede:global.itemindex/}" {dede:global name='itemindex' runphp='yes'}@me=(@me==1)?'':'';{/dede:global} class="pd2_lmc_l1">
 
 
channelartlist實例
{dede:channelartlist notypeid='123,124,146,147'} <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'}@me=@me-1;{/dede:global},'pd_lm','h_pd_lm_','pd2_lmt');" href='{dede:field name='typeurl'/}'> {dede:php}if($refObj->Fields['ispart']){echo $refObj->Fields['typename'];}{/dede:php} </a> {/dede:channelartlist}
標簽下使用 [field:global name=autoindex/]  
channel實例
 
{dede:channel titlelen='32'} <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> {/dede:channel}
在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}
自增1
 [field:global.autoindex/]
 
arclist實例
{dede:arclist channelid=17 row=6 orderby=pubdate titlelen=40 addfields='docphoto,docjob,doctec' typeid='123,136,146,155,172,182,202'} <div id="h_nrr_zj_[field:global.autoindex/]" class="nrr_zjl" [field:global name='autoindex' runphp='yes']if(@me==1){@me="";}else{@me='';}[/field:global] > <div><a href="[field:arcurl/]" title="[field:fulltitle/]" target="_blank"><img src="[field:litpic/]" alt="[field:fulltitle/]" /></a></div> </div> {/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] {/dede:list}
 

上一篇:織夢dede首頁列表頁獲取文章對應(yīng)的tag標簽

欄    目:dedecms

下一篇:織夢CMS自定義表單地區(qū)聯(lián)動類型不可用的解決辦法

本文標題:DedeCms織夢模板 autoindex和itemindex 使用教程

本文地址:http://mengdiqiu.com.cn/a1/dedecms/13459.html

更多dedecms

您可能感興趣的文章

閱讀排行

本欄相關(guān)

隨機閱讀

網(wǎng)頁制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語言數(shù)據(jù)庫服務(wù)器

如果侵犯了您的權(quán)利,請與我們聯(lián)系,我們將在24小時內(nèi)進行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有