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