Dear all,
and I thank to your great work, PHx.
I have two troubles by Jot and PHx.
One contributed to the forum of jot.
Please refer to it:
http://modxcms.com/forums/index.php/topic,12828.msg103702.html#msg103702But when I found another problem, it seems that it is trouble of PHx, I think.
So I contribute this forum.
About version:
MODx 0.9.5
PHx 2.1.2
Jot 1.1.2
I tried the following:
1. create a chunk, for example. Name is "forluluminitest".
[[Jot? &docid=`287` &validate=`content:content required,title:title requred:#[abc]#`]]
2. create a template and write as following.
......
{{forluluminitest}}
[+jot.html.comments+]
[+jot.html.navigation+]
[+jot.html.form+]
......
3. create a document and select the template which created in the above. And save.
4. access url of document which create in the above.
5. comment form appears.
6. input the required fields. And click button of "submit".
7. Then I get an error as following.
Error: preg_match() [function.preg-match]: Empty regular expression
Error type/ Nr.: Warning - 2
File: /home/example/www/assets/snippets/jot/jot.class.inc.php
Line: 781
Line 781 source: if (!preg_match($re,$value))
NEXT:
1. Disable PHx.
2. Try again.
3. I do not get error. The contribution of comment is successful.
NEXT:
1. Run PHx.
2. rewrite the chunk as following.
[[Jot? &docid=`287` &validate=`content:content required,title:title requred:#abc#`]]
(Of course, the meaning of Regular expression would differ).
3. Try again.
4. I do not get error.
I would like to use Regular expression (for example, #[abc]#) in Jot.
But it is disabled, if PHx is able.
Can I solve this problem?
Sincerely yours,