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

织梦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=http://www.dede58.com/"[field:arcurl/]" target="_blank" title="[field:fulltitle/]"><img width="118" height="77" align="[field:fulltitle/]" src=http://www.dede58.com/"[field:picname/]" /></a></dt>

<dd>

<p><a href=http://www.dede58.com/"[field:arcurl/]" target="_blank" title="[field:fulltitle/]">[field:title/]</a></p>

<p>[field:description function="cn_substr(@me,116)"/]....<a href=http://www.dede58.com/"[field:arcurl/]" target="_blank" title="详细">详细>></a></p></dd>

</dl>

{/dede:arclist}

<div></div>

 

<ul>

{dede:arclist row='10' titlelen='' infolen=''}

<li><a href=http://www.dede58.com/"[field:arcurl/]" target="_blank" title="[field:fulltitle/]">[field:title/]</a></li>

{/dede:arclist}

</ul>

</div><!--end yyhj_1-->

{/dede:channelartlist}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/cfa92fc179f0a750c0c8b5545ef17e50.html