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
http://www.bkjia.com/PHPjc/1022398.htmlwww.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...