雷火电竞-中国电竞赛事及体育赛事平台

歡迎來到入門教程網(wǎng)!

dedecms

當前位置:主頁 > CMS教程 > dedecms >

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

來源:本站原創(chuàng)|時間:2021-08-05|欄目:dedecms|點擊:

織夢默認使用拼音為保存目錄的時候使用的是中文全拼,當遇到欄目名稱比較長的時候目錄名稱看起來有點冗長,這時候大多數(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);
 
修改完成后趕快保存去試試吧,是不是很簡單呢?
 

上一篇:關(guān)于dede后臺登陸后一片空白

欄    目:dedecms

下一篇:生成時出現(xiàn)DedeTag Engine Create File False的解決方法

本文標題:dedecms 使用拼音首字母做欄目名稱

本文地址:http://www.jygsgssxh.com/a1/dedecms/15195.html

更多dedecms

您可能感興趣的文章

閱讀排行

本欄相關(guān)

隨機閱讀

網(wǎng)頁制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語言數(shù)據(jù)庫服務(wù)器

如果侵犯了您的權(quán)利,請與我們聯(lián)系,我們將在24小時內(nèi)進行處理、任何非本站因素導致的法律后果,本站均不負任何責任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有