dedecms中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);
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索