本站资源均来自互联网,仅供学习与参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
Copyright @ 2015-2020 织梦园 版权所有
Power by DedeCms
鲁ICP备15039853号-1
鲁公网安备 37132302000249号
模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
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);