找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 94|回复: 0

[cms教程] dede标题栏目按字母首字母命名

[复制链接]

该用户从未签到

发表于 2020-7-24 11:21:51 | 显示全部楼层 |阅读模式

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

×
dede添加栏目的时候,默认栏目名称是拼音全称,对于一些名称很长的此语全拼就会显得***长,不仅难看,而且对于优化来说是冗长。
         
        下面来说下dede标题栏目按字母首字母命名的方法。
         
        打开dede/catalog.add.php文件,找到85行:
         
        $toptypedir = GetPinyin(stripslashes($toptypename));
        修改为:
         
        $toptypedir = GetPinyin(stripslashes($toptypename)]1);
        找打108行:
         
        $typedir = $toptypedir.'/'.GetPinyin(stripslashes($v));
        修改为:
         
        $typedir = $toptypedir.'/'.GetPinyin(stripslashes($v)]1);
        找打134行:
         
        $toptypedir = GetPinyin(stripslashes($toptypename));
        修改为:
         
        $toptypedir = GetPinyin(stripslashes($toptypename)]1);
        找打187行:
         
        $typedir = GetPinyin(stripslashes($typename));
        修改为:
         
        $typedir = GetPinyin(stripslashes($typename)]1);
回复

使用道具 举报

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

GMT+8, 2024-10-7 20:34

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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