|
织梦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'}
{dede:arclist flag='c' row='1'}
[url=,
[img][/img]
[/url]
[url=,[field:title/,[/url]
[field:description function="cn_substr(@me,116)"/,....[url=,详细>>[/url]
{/dede:arclist}
{dede:arclist row='10' titlelen='' infolen=''}
[*,[url=,[field:title/,[/url]
{/dede:arclist}
{/dede:channelartlist} |
|