久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動(dòng):電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁(yè)多模板選擇-建站388元起價(jià)!!!
當(dāng)前位置:主頁(yè) > 網(wǎng)站建設(shè) > DedeCms autoindex和itemindex使用介紹,織夢(mèng)文章

DedeCms autoindex和itemindex使用介紹,織夢(mèng)文章

時(shí)間:2023-07-20 13:07:20 閱讀: 文章分類(lèi): 網(wǎng)站建設(shè) 作者: dede技術(shù)員

導(dǎo)讀:織夢(mèng)文章織夢(mèng)文章點(diǎn)評(píng) :autoindex/itemindex 可以使用 @me+1;實(shí)現(xiàn)由指定數(shù)字開(kāi)始,下面為大家詳細(xì)介紹下具體的兩者具體的用法,感興趣的朋友可以參考下 復(fù)制手機(jī)模板dededede手機(jī)模板。

手機(jī)模板dededede手機(jī)模板點(diǎn)評(píng):autoindex/itemindex 可以使用 @me+1;實(shí)現(xiàn)由指定數(shù)字開(kāi)始,下面為大家詳細(xì)介紹下具體的兩者具體的用法,感興趣的朋友可以參考下     代碼如下: <span style="color: rgb(51, 51, 51); font-family: 宋體, arial, helvetica, sans-serif; font-size: 14px; line-height: 26px; "></span>  讓dedecms autoindex,itemindex 從0到1開(kāi)始的辦法  代碼如下: [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 標(biāo)簽下使用 {dede:global name='itemindex' runphp='yes'}@me;{/dede:global}  自增1  arclist 標(biāo)簽下使用 [field:global.autoindex/] 默認(rèn)從1開(kāi)始  channel 標(biāo)簽下使用 [field:global.autoindex/] 默認(rèn)從0開(kāi)始  channelartlist 標(biāo)簽下使用 {dede:global.itemindex/} 默認(rèn)從1開(kāi)始  arclist 從0開(kāi)始[field:global name=autoindex runphp="yes"]@me=@me-1;[/field:global]  channel 從1開(kāi)始[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global][field:typename/]  channelartlist 從0開(kāi)始{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)?'':'style="display:none;"';{/dede:global} class="pd2_lmc_l1">  channelartlist實(shí)例  代碼如下: {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}  標(biāo)簽下使用 [field:global name=autoindex/]  channel實(shí)例  代碼如下: {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 時(shí)用這種方式:  代碼如下: {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==織夢(mèng)網(wǎng)站模板2){@me=" ";}else{@me=' ';}[/field:global]{/dede:arclist}  自增1  [field:global.autoindex/]  arclist實(shí)例  代碼如下: {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.autoinddede會(huì)員中心模板e(cuò)x/]"class="nrr_zjl" [field:global name='autoindex'runphp='yes']if(@me==1){@me="";}else{@me='style="display:none;"';}[/field:global] >  <div><a href="[field:arcurl/]" title="[field:fulltitle/]" target="_blank"><img src="[field:litpic/]"alt="[field:fulltitle/]" /></a></div>  </div>  {/dede:arclist}  如何自由定義 開(kāi)始的數(shù)字  autoindex/itemindex 可以使用 @me+1;實(shí)現(xiàn)由指定數(shù)字開(kāi)始  遇到類(lèi)似的問(wèn)題做下這個(gè)筆記,在用到的時(shí)候可以靈活發(fā)揮!  list 標(biāo)簽下試用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}  對(duì)autoindex/itemindex使用自定義函數(shù)  先在include/extend.fun.php里添加自定義函數(shù)&nbs織夢(mèng)模板下載p; 代碼如下: function MyPosition($p){  $positionArr=array(275,330,380,435,495,547);  return $positionArr[$p];  然后在模板里添加  代碼如下: {dede:channel type='son' typeid='13' row='6' noself='yes'}  <!-----側(cè)欄菜單------------------>  <div id='pdv_16795' class='pdv_class' title='' style="width:71px;height:20px;top:[field:global.autoindex function='MyPosition(@me)'/]px;left:136px; z-index:17">  <div style="FONT-FAMILY: SimSun; COLOR: #fecd2e; FONT-SIZE: 15px; fon-weight: bold"><a style="FONT-FAMILY: SimSun; COLOR: #fecd2e; FONT-SIZE: 15px; fon-weight: bold" href="[field:typeurl/]" target=_blank><strong>[field:typename/]</strong></a></div>  </div>  {/dede:channel} 相關(guān)手機(jī)模板dededede手機(jī)模板。

關(guān)鍵詞標(biāo)簽: 標(biāo)簽 織夢(mèng) 標(biāo)題

聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-07-20 ,文章DedeCms autoindex和itemindex使用介紹,織夢(mèng)文章主要講述標(biāo)簽,標(biāo)題,織夢(mèng)網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_32219.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專(zhuān)注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計(jì)制作搭建開(kāi)發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開(kāi)發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門(mén)源碼技術(shù)文章

    主站蜘蛛池模板: 鄂伦春自治旗| 十堰市| 肃宁县| 龙山县| 米脂县| 莲花县| 丹东市| 三原县| 买车| 蒙自县| 卢氏县| 蒲城县| 尖扎县| 黔东| 阳山县| 朔州市| 永城市| 南木林县| 牡丹江市| 富锦市| 永胜县| 禹州市| 水富县| 德惠市| 夏津县| 雅江县| 巩留县| 抚宁县| 洪洞县| 亚东县| 同德县| 定兴县| 纳雍县| 固阳县| 望都县| 古田县| 仁布县| 县级市| 交口县| 同江市| 南京市|