[TYPO3-core] RFC: New feature: Add custom FORM fields using hooks (mainly used for captcha)

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Aug 30 10:24:45 CEST 2006

Michael Stucki schrieb:
> This is a SVN patch request.
> Problem:
> I had this problem for the first time while trying to get captcha work with 
> FORM elements on typo3.org. Apparently this does not work yet.
> Solution:
> Add two hooks to add custom fields dynamically and to check the submitted 
> values with an extension.

To be in sync with custom TCE forms validation I suggest not to look for 
/^hook/ but /^tx_/.

And I'm a bit worried that again a hook exposes many internal variables 
(fPart, etc). I thought about revamping the FORMS code so the variables 
might change.

Why revamping? Because the code is broken in some respect. Instead of 
holding the configuration in PHP arrays its internals are more in sync with 
the external configuration of FORM contenet elements (comma separated 
lists). So you cannot use a comma in a label for a radio button. Not even 
when you set the label in the TS array version of the config!!! This is 
because the TS array is converted into the content element format. Oh my.

So yes for the idea, but let's postpone it.


More information about the TYPO3-team-core mailing list