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);
免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)