
歡迎訪問(wèn)全國(guó)企業(yè)網(wǎng)站設(shè)計(jì)NO.1網(wǎng)站開(kāi)發(fā)商平臺(tái) | 付款方式 |
POST TIME:2020-09-07
Dedecms織夢(mèng)程序默認(rèn)使用拼音為保存目錄的時(shí)候使用的是中文全拼,當(dāng)遇到欄目名稱比較長(zhǎng)的時(shí)候目錄名稱看起來(lái)有點(diǎn)冗長(zhǎng),這時(shí)候大多數(shù)站長(zhǎng)喜歡使用拼音首字母作為欄目的保存目錄,那么就需要修改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);
修改完成后趕快保存后添加幾個(gè)欄目頁(yè)試試吧,是不是已經(jīng)搞定了欄目拼音首字母命名呢呢?
巨號(hào)網(wǎng)網(wǎng)站開(kāi)發(fā)部為全國(guó)企業(yè)提供網(wǎng)頁(yè)設(shè)計(jì)和專業(yè)的公司網(wǎng)站制作等相關(guān)建站服務(wù),并提供24小時(shí)企業(yè)網(wǎng)站設(shè)計(jì)咨詢!
關(guān)于我們 建站知識(shí) 榮譽(yù)資質(zhì)網(wǎng)站地圖