[TYPO3-mvc] Can Fluid produce the right HTML5 code?

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Nov 25 18:29:33 CET 2010


Hey Bastian,

>> Best would also be that the vHs create the needed attributes based
>> on the validation annotations of the properties. Even better would
>> be if resulting errors would be classified f.e. in "required/missing"
>> [...]
>
> I'm not sure about that.. Could be a case of a software trying to be
> more clever than it's user. E.g. you might want to use it in BE too and
> there the rules might be different.

well, the classification should only be there as additional 
information/flag in order to be able to use it in your viewHelpers - the 
default viewHelper should of course not try to group stuff etc.
With current situation I have to feed my viewHelper with tons of 
errorCodes to be able to group them classified. And writing translations 
for error codes specific for a field is quite cryptic, as I also have to 
rely on the error code.

So instead of:

<label index="nameOfFormObject.nameOfProperty.1234568135">Please enter a 
correct emailAddress</label>

we could have

<label index="nameOfFormObject.nameOfProperty.f-error-invalid">Please 
enter a correct emailAddress</label>

I tried to implement such a feature already, but didn't proceed much due 
to lack of time.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list