[TYPO3-mvc] FYI: some real-world problems in extbase projects (and their pragmatic solution)

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Mar 19 14:44:25 CET 2010


Hey Sebastian,

> I have been involved in some Extbase consulting lately, and was allowed
> to publish the results (Thanks Peter Niederlag :-) ). I could imagine
> that some of the solutions might be of interest for you, too:
>
> How to add a CSS class to an HTML if there is a validation error for a
> property: http://tr.im/SvYM

Thanks for sharing - this is indeed quite helpful :) I was also in need 
of something like this, but due to a lack of time I was not able to 
spend time on a custom viewHelper and solved it differently then.


As for the validation messages:
I went a different way. I didn't want to pop the very same error message 
of required fields multiple times ("Please fill out XX", "Please fill 
YY", "Please fill ZZ"), so I wrote a little viewHelper that's combining 
errors based on their error-code and have my template then render each 
error only once, like "Please fill in all marked fields in order to send 
the form.". Maybe something like this would also be a nice default 
viewHelper for FLUID.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list