phpcms 允许英文目录有空格_PHP教程

WBOY
Release: 2016-07-13 09:48:40
Original
1027 people have browsed it

phpcms 允许英文目录有空格

 

大家都用过phpcm添加栏目吧,在添加栏目里面,有个选项是 英文目录,这里目录可以用作伪静态功能。这么英文不能有空格等特殊字符。但是如果页面中需要引用包含空格的字符呢,例如,关于我们页面,我要显示英文about us。那么怎么处理呢

\

第一步:打开下面文件
phpcms\modules\admin\templates\category_add.tpl.php
phpcms\modules\admin\templates\category_edit.tpl.php
phpcms\modules\admin\templates\category_page_add.tpl.php
phpcms\modules\admin\templates\category_page_edit.tpl.php
这四个模板文件,分别对应后台的,添加栏目,修改栏目,添加单网页,修改单网页

第二步:

找到表单验证的字段,修改就可以了

 

        regexValidator({regexp:"^([a-zA-Z0-9、-]|[_]){0,30}$ 
        替换成 
        regexValidator({regexp:"^([a-zA-Z0-9、-]|[_]|[ ]){0,30}$ 
Copy after login


 

这样就可以了
\
生活不易,码农辛苦
如果您觉得本文的内容对您的学习有所帮助,可以手机扫描二维码进行捐赠
\

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1022398.htmlTechArticlephpcms 允许英文目录有空格 大家都用过phpcm添加栏目吧,在添加栏目里面,有个选项是 英文目录,这里目录可以用作伪静态功能。这么英文...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!