[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:global name=itemindex runphp="yes"}@me=@me+1;{/dede:global}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
autoindex itemindex 的使用心得区别文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
channelartlist 标签下使用 {dede:global name='itemindex' runphp='yes'}@me;{/dede:global}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
自增1文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
arclist 标签下使用 [field:global.autoindex/] 默认从1开始文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
channel 标签下使用 [field:global.autoindex/] 默认从0开始文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
channelartlist 标签下使用 {dede:global.itemindex/} 默认从1开始文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
arclist 从0开始 [field:global name=autoindex runphp="yes"]@me=@me-1;[/field:global]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
channel 从1开始 [field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global][field:typename/]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
channelartlist 从0开始 {dede:global name=itemindex runphp='yes'}@me=@me-1;{/dede:global}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<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">文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
eg---->文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:channelartlist notypeid='123,124,146,147'}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<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%20name='typeurl'/}'>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:php}if($refObj->Fields['ispart']){echo $refObj->Fields['typename'];}{/dede:php}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
</a>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{/dede:channelartlist}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:channelartlist typeid="1" row="8" }文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<div class="combz01" {dede:global name=itemindex runphp='yes'}if(@me==2)@me='id="with"';if(@me==5)@me='id="with"';if(@me==7)@me='id="with"';{/dede:global}>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<div class="combz01title"><a href="{dede:field%20name='typeurl'/}" title="{dede:field name='typename'/}" target="_blank"><b>{dede:field name='typename'/}</b></a><u><a href="{dede:field%20name='typeurl'/}" title="{dede:field name='typename'/}" target="_blank">更多>></a></u></div>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<div class="comcon">文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:arclist titlelen='42' row='1' flag='c'}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<img src="[field:litpic/]" width="127" height="94"/>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<i>[field:description function="cn_substr(@me,100)"/]...<a href="[field:arcurl%20/]" title="[field:fulltitle/]" target="_blank">[详情]</a></i>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{/dede:arclist}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
</div>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<div class="comconlist">文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<ul>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:arclist titlelen="42" row="3"}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<li><a href="[field:arcurl%20/]">[field:title /]</a></li>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{/dede:arclist}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
</ul>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
</div>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
</div>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{/dede:channelartlist}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
channel 标签下使用 [field:global name=autoindex/] 文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
eg---->文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:channel titlelen='32'}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<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>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{/dede:channel}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
在arclist中使用autoindex runphp 时用这种方式:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:arclist titlelen='22' row='4' flag='c' orderby='id'}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<a href="[field:arcurl%20/]" target="_blank">[field:title /]</a>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
[field:global name='autoindex' runphp='yes']if(@me==2){@me="<br />";}else{@me=' ';}[/field:global]{/dede:arclist} 文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
自增1文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
[field:global.autoindex/]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
eg文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:arclist channelid=17 row=6 orderby=pubdate titlelen=40 addfields='docphoto,docjob,doctec' typeid='123,136,146,155,172,182,202'}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<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] >文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
<div><a href="[field:arcurl/]" title="[field:fulltitle/]" target="_blank"><img src="[field:litpic/]" alt="[field:fulltitle/]" /></a></div>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
</div>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{/dede:arclist}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
如何自由定义 开始的数字文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
autoindex/itemindex 可以使用 @me+1;实现由指定数字开始文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
遇到类似的问题做下这个笔记,在用到的时候可以灵活发挥!文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
list 标签下试用autoindex文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{dede:list pagesize='40' orderby='id'}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
[field:global name='autoindex' runphp='yes']if(@me%10==0){@me="test";}else{@me='';}[/field:global]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html
{/dede:list}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1722.html