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

2024-11-25 60阅读 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);
文章版权声明:除非注明,否则均为奥多云原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,60人围观)

还没有评论,来说两句吧...

取消
微信二维码
微信二维码
支付宝二维码