dede添加欄目的時候,默認欄目名稱是拼音全稱,對于一些名稱很長的此語全拼就會顯得非常長,不僅難看,而且對于優化來說是冗長。
下面來說下dede標題欄目按字母首字母命名的方法。
打開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);
轉載:非常歡迎各位朋友分享到個人站長或者朋友圈,但轉載請說明文章出處“黎青松seo博客”。
原文地址:http://www.alitaohuo.com/cmsjiaocheng/zhimengjiaocheng/1921.html
面對網紅經濟的時代 產品經理該如何轉自己的思路華為云服務器怎么上傳源碼自建的服務器域名如何備案網站國外無法打開-域名及賬戶問題SugarHosts美國機房簡介 提升中國用戶的購買體驗云計算有哪些缺點虛擬主機怎么添加多個網站Android 4.0設計初體驗