DedeCMS织梦默认的栏目页使用完整拼音为保存目录,当我们遇到栏目名称比较长的时候目录名称看起来有点冗长,这时候大多数站长喜欢使用拼音首字母作为栏目的保存目录,为此搜集教程,解决DedeCMS如何定义栏目路径名为拼音缩写的问题,具体教程如下: 打开dede/catalog.add.php文件: 1、找到代码(大概在第85行): $toptypedir = GetPinyin(stripslashes($toptypename)); 修改为: $toptypedir = GetPinyin(stripslashes($toptypename)]1); 2、找到代码(大概在第108行): $typedir = $toptypedir.'/'.GetPinyin(stripslashes($v)); 修改为: $typedir = $toptypedir.'/'.GetPinyin(stripslashes($v)]1); 3、找到代码(大概在第134行): $toptypedir = GetPinyin(stripslashes($toptypename)); 修改为: $toptypedir = GetPinyin(stripslashes($toptypename)]1); 4、找到代码(大概在第187行): $typedir = GetPinyin(s...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|