加入收藏 | 设为首页 | 会员中心 | 我要投稿 厦门网 (https://www.xiamenwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 建站 > 正文

dede标题栏目如何设置按字母首字母命名

发布时间:2020-10-12 00:23:57 所属栏目:建站 来源:网络整理
导读:dede添加栏目的时候,默认栏目名称是拼音全称,对于一些名称很长的此语全拼就会显得非常长,不仅难看,而且对于优化来说是冗长。

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

(编辑:厦门网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读