dede标题栏目如何设置按字母首字母命名
  • 更新时间:2024-09-20 19:29:37
  • 建站经验
  • 发布时间:1年前
  • 250

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

回到顶部