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

相关文章

织梦模板建站更换logo的操作步骤:1.找到logo图片所在文件位...
织梦更适合企业建站,织梦拥有大量免费的漂亮模版,简单易用...
在织梦中设置404页面的方法1.进入织梦网站后台管理界面,在界...
解决织梦系统漏洞的方法有以下几种1.将data、templets、uplo...
织梦网站漏洞的解决办法:1.删除install安装目录。2.定期进行...
修改织梦建站变默认路径的方法:1.进入织梦cms;2.选择“系统...