仿站咨询QQ:2587483189

手机微信同号:15850888840

dede标题栏目按字母首字母命名

 dede添加栏目的时候,默认栏目名称是拼音全称,对于一些名称很长的此语全拼就会显得***长,不仅难看,而且对于优化来说是冗长。

 
下面来说下dede标题栏目按字母首字母命名的仿站方法。
 
打开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);

  • 上一篇:织梦CMS内容摘要字数限制不能自动换行
  • 下一篇:织梦dede编辑器附件和自定义字段附件上传文件点击无反应
  • 来源:未知//所属分类: dede仿站 /更新时间:2021-06-07
    相关仿站教程