99热这里只有精品一区-国产精品一级香蕉一区-在线激情av中文字幕-日韩在美女视频在线观看

dede標題欄目如何設置按字母首字母命名
  • 更新時間:2025-10-16 14:16:19
  • 開發經驗
  • 發布時間:2年前
  • 610

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);

我們專注高端建站,小程序開發、軟件系統定制開發、BUG修復、物聯網開發、各類API接口對接開發等。十余年開發經驗,每一個項目承諾做到滿意為止,多一次對比,一定讓您多一份收獲!

本文章出于推來客官網,轉載請表明原文地址:https://www.tlkjt.com/experience/8211.html
推薦文章

在線客服

掃碼聯系客服

3985758

回到頂部