[TYPO3-mvc] Should Fluid support all tags from w3.org?

Bastian Waidelich bastian at typo3.org
Fri May 6 16:22:37 CEST 2011


Martin Kutschker wrote:

Hi,

>> I'm in the middle of a project, where i would have to use onchange in
>> a form.select viewhelper. Unfortunately, that parameter is not
>> registred in fluid as a tag allowed for the select viewhelper.

> onchange is an attribute.

To split some more hairs: in this case it's actually both, an attribute 
of the tag and a parameter of the fluid view helper ;)

Regarding supported attributes:
When implementing the form viewhelpers we were oriented towards the 
XHTML 1.0 Reference of w3schools [1].
But instead of adding all supported event attributes to every view 
helper we decided to introduce an "additionalArguments" attribute that 
you can use to specify any attribute you wish (see also [2]).

We might find a better solution to target different doctypes, but for 
now you'll have to stick with

<f:select additionalAttributes="{onchange: 'your script'}">

or go the unobtrusive way [3] ;)

HTH
Bastian


[1] http://www.w3schools.com/tags/default.asp
[2] http://forge.typo3.org/issues/5637
[3] http://de.wikipedia.org/wiki/Unobtrusive_JavaScript


More information about the TYPO3-project-typo3v4mvc mailing list