织梦dede:channel的currentstyle里面加入~autoindex~自增

织梦模板代码

{dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span>~autoindex~</a></li>"}

<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span>[field:global name=autoindex/]</a></li>

{/dede:channel}

修改方法

打开 \include\taglib\channel.lib.php 找到

$linkOkstr = str_replace("~typename~",$row['typename'],$linkOkstr);

在它的下面加入

$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex'],$linkOkstr);

注明:本文为星速云原创版权所有,禁止转载,一经发现将追究版权责任!

(0)
上一篇 2022年8月9日 上午9:18
下一篇 2022年8月9日 上午9:18

相关推荐

发表评论

登录后才能评论
问答社区 QQ客服
微信客服
微信客服
分享本页
返回顶部