Home > Backend Development > PHP Tutorial > phpcms allows spaces in English directories_PHP tutorial

phpcms allows spaces in English directories_PHP tutorial

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

phpcms allows spaces in English directories

Everyone has used phpcm to add columns. In adding columns, there is an option for English directory. The directory here can be used as a pseudo-static function. In this way, English cannot have special characters such as spaces. But what if characters containing spaces need to be quoted in the page, for example, on the About Us page, I want to display about us in English. So how to deal with it



Step 1: Open the file below
phpcmsmodulesadmintemplatescategory_add.tpl.php
phpcmsmodulesadmintemplatescategory_edit.tpl.php
phpcmsmodulesadmintemplatescategory_page_add.tpl.php
phpcmsmodulesadmintemplatescategory_page_edit.tpl.php
These four template files correspond to the background, adding columns, modifying columns, adding a single web page, and modifying a single web page

Step 2:

Find the fields for form validation and modify them

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


That’s it

Life is not easy, coders work hard
If you think the content of this article is helpful to your study, you can scan the QR code with your mobile phone to donate

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1022398.htmlTechArticlephpcms allows English directories to have spaces. Everyone has used phpcm to add columns. In adding columns, there is an option: English directory, this directory can be used as a pseudo-static function. So English...
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