打开/include/taglib/channel.lib.php文件
找到
$linkOkstr = str_replace("~typename~",$row['typename'],$linkOkstr);
改成
$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex'],$linkOkstr);
前端代码
{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}