首页 > 网站 > 建站经验 > 正文

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

2024-04-25 20:51:22
字体:
来源:转载
供稿:网友
点评:这篇文章主要介绍了dedecms 栏目目录用首字母生成的方法,需要的朋友可以参考下
 
 

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表