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

时间:2015-12-03

在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列表页调用图集内容多张图片的方法 下一条:dedecms上传图片附件文件夹按年月保存

相关文章

最新文章