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

DedeCms织梦dede:channel的currentstyle里面加入autoindex,dedecms中channel标签的currentstyle里加入autoindex自增,织梦模板中channel标签的currentstyle里加入autoindex自增,织梦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);

更多教程关注FF推源码网。

提供最优质的资源集合

立即查看 了解详情