一起源码网

  • QingYuanMa.com
  • 全球最大的互联网技术和资源下载平台
搜索
一起源码网 门户 织梦CMS 查看主题

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

发布者: elangren | 发布时间: 2018-4-10 03:10| 查看数: 4376| 评论数: 1|帖子模式

    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);
  修改完成后赶快保存后添加几个栏目页试试吧,是不是已经搞定了栏目拼音首字母命名呢呢?

最新评论

.5920 发表于 2022-6-6 19:53
日本永久免费云服务器

轻源码让程序更轻更快

QingYuanMa.com

工作时间 周一至周六 8:00-17:30

侵权处理

客服QQ点击咨询

关注抖音号

定期抽VIP

Copyright © 2016-2021 https://www.171739.xyz/ 滇ICP备13200218号

快速回复 返回顶部 返回列表