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

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!

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

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

      查看更多 DedeCms教程  織夢模板  織夢DedeCms視頻教程  織夢dedecms專題

      作者:Exist/所屬分類:DedeCms教程/更新時間:2013-11-21
      相關DedeCms教程