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

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

dedecms

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

織夢新建欄目自動使用拼音首字母做欄目名稱教程

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

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);
 
這樣就完成了織夢欄目自動用拼音首字母自動命名
 

上一篇:織夢刪除服務(wù)器中多余的沒有被調(diào)用的圖片

欄    目:dedecms

下一篇:織夢自定義表單如何判斷只有會員登錄以后才能發(fā)布或者瀏覽

本文標題:織夢新建欄目自動使用拼音首字母做欄目名稱教程

本文地址:http://www.jygsgssxh.com/a1/dedecms/14123.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)所有