在使用dede(織夢)程序的時候,dede默認(rèn)使用拼音為保存目錄的時候使用的是中文全拼,當(dāng)欄目名稱特別長的時候,就特別長,寫路徑的時候十分麻煩, 而且對優(yōu)化不好,我們需要盡量把路徑寫短一點,文件夾的名稱當(dā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)容,希望對你們有所幫忙。
新聞熱點
疑難解答
圖片精選