dedecms新建栏目时自动以拼音首字母作文件夹名称
dedecms实现栏目名称首字母做栏目链接的方法,dedecms按栏目名首字母/数字排序输出的实现方法,织梦新建栏目自动使用拼音首字母做栏目名称教程,织梦的栏目命名取字母首字母的方法,下面小编来给大家介绍一下,一起来了解一下吧!
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);
以上就是dedecms新建栏目时自动以拼音首字母作文件夹名称的介绍,希望大家喜欢!
更多教程关注FF推源码网。