dedecms利用拼音首字母做栏目称号
织梦默许利用拼音为保存目录的时分利用的是中文全拼,当遇到栏目称号比较长的时分目录称号看起来有点简短,这时分大少数站长青睐利用拼音首字母作为栏目标保存目录,那么有没有什么快速的办法能让咱们快速的利用首字母作为栏目称号呢?答案是一定的,而且很简略。 修正
dedecms利用拼音首字母做栏目称号
织梦默许利用拼音为保存目录的时分利用的是中文全拼,当遇到栏目称号比较长的时分目录称号看起来有点简短,这时分大少数站长青睐利用拼音首字母作为栏目标保存目录,那么有没有什么快速的办法能让咱们快速的利用首字母作为栏目称号呢?答案是一定的,而且很简略。
修正dede/catalog.add.php文件
85行 $toptypedir = GetPinyin(stripslashes($toptypename));
修正为 $toptypedir = GetPinyin(stripslashes($toptypename),1);
108 行 $typedir = $toptypedir.'http://www.yhzhan.com/'.GetPinyin(stripslashes($v));
修正为 $typedir = $toptypedir.'http://www.yhzhan.com/'.GetPinyin(stripslashes($v),1);
134行 $toptypedir = GetPinyin(stripslashes($toptypename));
修正为 $toptypedir = GetPinyin(stripslashes($toptypename),1);
187行 $typedir = GetPinyin(stripslashes($typename));
修正为 $typedir = GetPinyin(stripslashes($typename),1);
分享到:
本文"dedecms利用拼音首字母做栏目称号"由蚂蚁部落站长搜集整顿而来,仅供大家学习与参考利用。更多网站制造教程尽在蚂蚁部落站长站。
顶一下
(1)
100%
踩一下
(0)