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

来源:黎青松SEO博客 时间:2020-10-09

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

转载:非常欢迎各位朋友分享到个人站长或者朋友圈,但转载请说明文章出处“黎青松SEO博客”。

原文地址:http://www.alitaohuo.com/CMSjiaocheng/zhimengjiaocheng/1921.html

项目推荐

A5创业网 版权所有

返回顶部