织梦dedecms channelartlist下autoindex失效解决办法

在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: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="[field:picname/]" /></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}



你可能感兴趣的:(织梦dedecms channelartlist下autoindex失效解决办法)