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

织梦标签代码 {dede:channel type=top row=10 currentstyle=li class=hovera href=~typelink~ ~rel~span~typename~/span~autoindex~/a/li}lia href=[field:typeurl/] [field:rel/]span[field:typename/]/span[field:global name=autoindex/]/a/li{/dede:channel} 修改方法 打开 /include/ […]



织梦标签代码

{dede:channel type='top' row='10' currentstyle="
  • ~typename~~autoindex~
  • "}
  • [field:typename/][field:global name=autoindex/]
  • {/dede:channel}

    修改方法

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

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

    在它的下面加入

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


    加载中~