在dede
织梦模板后台调用织梦名称的时候,默认是使用栏目的全拼来作为栏目名称的,但是如果栏目很长的话,这样就会让栏目名称也变的很长,所以很多人都希望可以用拼音的首字母来作为栏目名称,修改一些文件也是可以实现的,但是记住要先保存数据。
打开dede/catalog.add.php文件
找到
$toptypedir = GetPinyin(stripslashes($toptypename));
|
修改为
$toptypedir = GetPinyin(stripslashes($toptypename),1);
|
找到
$typedir = $toptypedir.'/'.GetPinyin(stripslashes($v));
|
修改为
$typedir = $toptypedir.'/'.GetPinyin(stripslashes($v),1);
|
找到
$toptypedir = GetPinyin(stripslashes($toptypename));
|
修改为
$toptypedir = GetPinyin(stripslashes($toptypename),1);
|
找到
$typedir = GetPinyin(stripslashes($typename));
|
修改为
$typedir = GetPinyin(stripslashes($typename),1);
|
这样就可以了,然后更新一下就可以看到效果了。
☉首先声明,只要是我们的vip会员全站所有资源均可以免费下载,不做任何限制(了解更多)
☉本站的源码不会像其它下载站一样植入大量的广告。
☉本站提供的网站源码,都是做好测试好发布的,均可放心使用。
☉本站提供的网站源码,均带数据及演示地址。可以在任一源码详情页查看演示地址。
☉为了vip利益的最大化,我们还提供了vip赠品(了解更多)
☉如有其他问题,请加网站客服QQ(9490489)进行交流。