dedecms 欄目目錄用首字母生成的方法

字號(hào):


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