在使用dede(織夢(mèng))程序的時(shí)候,dede默認(rèn)使用拼音為保存目錄的時(shí)候使用的是中文全拼,當(dāng)欄目名稱特別長(zhǎng)的時(shí)候,就特別長(zhǎng),寫路徑的時(shí)候十分麻煩, 而且對(duì)優(yōu)化不好,我們需要盡量把路徑寫短一點(diǎn),文件夾的名稱當(dāng)然也是短一點(diǎn)的好。所以需要修改下,改成首字母組合就好了,這樣既方便記住,也能縮短目錄的 名字長(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);
以上就就是本文章的內(nèi)容,希望對(duì)你們有所幫忙。
此文由 網(wǎng)站目錄_網(wǎng)站網(wǎng)址收錄與提交入口 編輯,未經(jīng)允許不得轉(zhuǎn)載!: