怎么使用拼音首字母做栏目名称?
就需要修改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);