织梦CMS程序使用拼音首字母做栏目名称的方法

分类:模板制作教程 发布时间:2019-05-07 21:49:26

摘要:织梦CMS程序如何&怎么使用拼音首字母做栏目名称?DEDECMS程序使用拼音首字母做栏目名称的方法&教程,适用于织梦5.7

怎么使用拼音首字母做栏目名称?

就需要修改dede/catalog.add.php文件

85行

  1. $toptypedir = GetPinyin(stripslashes($toptypename));

修改为

  1. $toptypedir = GetPinyin(stripslashes($toptypename),1);


108 行

  1. $typedir = $toptypedir.’/’.GetPinyin(stripslashes($v));

修改为

  1. $typedir = $toptypedir.’/’.GetPinyin(stripslashes($v),1);


134行

  1. $toptypedir = GetPinyin(stripslashes($toptypename));

修改为

  1. $toptypedir = GetPinyin(stripslashes($toptypename),1);


187行

  1. $typedir = GetPinyin(stripslashes($typename));

修改为

  1. $typedir = GetPinyin(stripslashes($typename),1);