分享:織夢Dedecms使用拼音首字母做欄目名稱,織夢
導讀:織夢教程
分享一篇織夢Dedecms使用拼音首字母做欄目名稱的方法
織夢默認使用拼音為保存目錄的時候使用的是中文全拼,當遇到欄目名稱比較長的時候目錄名稱看起來有點冗長,這時候大多數站長喜歡使用拼音首字母作為欄目的保存目錄,那么就需要修改dede/catalog.add.php文件
85行 $toptypedir = GetPinyin(stripslashes($topt織夢模板修改ypename));
修dede后臺模板改為 $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);
修改完成后趕快保存去試試吧,是不是很簡單呢?
[分享提高網站有效鏈接收錄技巧]
[小技巧:織夢如何調用聯動類型]
[分享:圖片優化須知的8個小技巧]
[分享:織夢DedeCMS實用技巧-八大安全措施]
[鼠標停在標題上顯示完整標題的小技巧]
[完美實現dede文章dede模板下載列表“隔行換色”的技巧]
相關dede模板下載dede58模板。聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-22 ,文章分享:織夢Dedecms使用拼音首字母做欄目名稱,織夢主要講述拼音,首字母,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_33796.html