Dedecms织梦程序默认应用拼音为保留目录的时候应用的是中文全拼,当碰到栏目名称比拟长的时候目录名称看起来有点漫长,这时候大多数站长爱好应用拼音首字母作为栏目标保留目录,那么就须要修正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);
修正实现后赶紧保留后增加多少个栏目页尝尝吧,是不是已经搞定了栏目拼音首字母命名呢呢?