织梦dede:channel的currentstyle里面加入autoindex自增
类别:建站知识   时间:06-11

织梦标签代码

{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);

智慧半岛,是一家专注于青岛网站建设青岛网站开发的青岛网络公司,Copyright ©2007-2019 Ebandao.Cn 版权所有 All Rights Reserved.(建议在1366x768以上的浏览器中访问)鲁ICP备08014496号

13153297890