濮阳杆衣贸易有限公司

主頁 > 網(wǎng)站建設(shè) > 建站知識 > DEDECMS使用拼音首字母做欄目名稱

DEDECMS使用拼音首字母做欄目名稱

POST TIME:2017-10-30 21:28

織夢默認(rèn)使用拼音為保存目錄的時候使用的是中文全拼,當(dāng)遇到欄目名稱比較長的時候目錄名稱看起來有點冗長,這時候大多數(shù)站長喜歡使用拼音首字母作為欄目的保存目錄,那么就需要修改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);

修改完成后趕快保存去試試吧,是不是很簡單呢?



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
鹤岗市| 黑河市| 时尚| 翼城县| 尖扎县| 石家庄市| 都兰县| 祁东县| 绥棱县| 静海县| 珠海市| 阿拉尔市| 岑溪市| 福州市| 太保市| 武平县| 高州市| 白银市| 吴川市| 大埔区| 铁岭市| 乌鲁木齐市| 邹平县| 西畴县| 伽师县| 特克斯县| 花莲县| 台江县| 宁乡县| 奉新县| 正蓝旗| 佛坪县| 怀宁县| 平泉县| 陇西县| 新巴尔虎右旗| 齐齐哈尔市| 藁城市| 吉安县| 宁都县| 兴和县|