找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 151|回复: 0

[cms教程] 织梦dede:channel的currentstyle里面加入autoindex自增

[复制链接]

该用户从未签到

发表于 2021-6-7 10:36:25 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
织梦标签代码


       
               
                       
                               
{dede:channel type='top' row='10' currentstyle="[url=~typelink~,~typename~~autoindex~[/url]"}
[*,[url=[field:typeurl/,,[field:typename/,[field:global name=autoindex/,[/url]
{/dede:channel}
                       
               
       


        修改方法
        打开 /include/taglib/channel.lib.php 找到
       
       
               
                       
                               
                                       
$linkOkstr = str_replace("~typename~",$row['typename',,$linkOkstr);
                               
                       
               
       
在它的下面加入



       
               
                       
                               
$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex',,$linkOkstr);
回复

使用道具 举报

网站地图|页面地图|文字地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2024-10-10 06:13

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表