首页 > 其他 > 详细

dedecms 栏目目录用首字母生成的方法

时间:2016-10-03 10:39:46      阅读:151      评论:0      收藏:0      [点我收藏+]

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

 

Editplus编辑器
查找: GetPinyin\(stripslashes\(\$\w+\)
替换: \0,1

技术分享

dedecms 栏目目录用首字母生成的方法

原文:http://www.cnblogs.com/gggzly/p/5928807.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!