织梦默认行使拼音为生涯目次的时辰行使的是中文全拼,当碰着栏目名称较量长的时辰目次名称看起来有点冗长,这时辰大大都站长喜好行使拼音首字母作为栏目标生涯目次,那么就必要修改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);
修改完成后赶紧生涯去试试吧,是不是很简朴呢?
在线客服