织梦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);

本站文章均为智慧.半岛网站建设摘自权威资料,书籍,或网络原创文章,如有版权纠纷或者违规问题,请即刻联系我们删除,我们欢迎您分享,引用和转载,我们谢绝直接复制和抄袭!感谢...
我们猜你喜欢