查看: 79|回复: 0

[教程] dedecms 栏目目录用首字母生成的方法

[复制链接]

2

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2008-7-25
发表于 2023-12-15 00:00:00 | 显示全部楼层 |阅读模式
修改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);
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部