在channelartlist是無法獲取到autoindex 值 可以用itemindex代替
具體用法{dede:global name=’itemindex’/}執行php使用者
{dede:global name=’itemindex’ runphp=’yes’}if(@me==1){@me = “display: block;”;}else{@me = “display: none;”;}{/dede:global}
autoindex和itemindex列子:
具體用法{dede:global name=’itemindex’/}執行php使用者
{dede:global name=’itemindex’ runphp=’yes’}if(@me==1){@me = “display: block;”;}else{@me = “display: none;”;}{/dede:global}
autoindex和itemindex列子:
{dede:channelartlist typeid='3' row='7'} <div id="con_wcfk_{dede:global name='itemindex'/}" style="{dede:global name='itemindex' runphp='yes'}if(@me==1){@me = "display: block;";}else{@me = "display: none;";}{/dede:global}"> {dede:arclist flag='c' row='1'} <dl> <dt><a href="[field:arcurl/]" target="_blank" title="[field:fulltitle/]"><img width="118" height="77" align="[field:fulltitle/]" src="" /></a></dt> <dd> <p><a href="[field:arcurl/]" target="_blank" title="[field:fulltitle/]">[field:title/]</a></p> <p>[field:description function="cn_substr(@me,116)"/]....<a href="[field:arcurl/]" target="_blank" title="詳細">詳細>></a></p></dd> </dl> {/dede:arclist} <div></div> <ul> {dede:arclist row='10' titlelen='' infolen=''} <li><a href="[field:arcurl/]" target="_blank" title="[field:fulltitle/]">[field:title/]</a></li> {/dede:arclist} </ul> </div><!--end yyhj_1--> {/dede:channelartlist}