[TYPO3-mvc] Validation in TCA and extbase

Jigal van Hemert jigal at xs4all.nl
Wed Oct 14 14:55:08 CEST 2009


Bastian Waidelich wrote:
> I don't think, that we need to sync Extbase with TCA, at least not 
> automatically.
> In a lot of cases you want _different_ validation rules in the TCE. E.G. 
> you might want to allow "Extbase" as blog title in the BE but not in the 
> FE.

I meant that the *available* validation rules should be in sync. For 
example, there is a validator rule "EmailAddress" in extbase, but no 
such thing in the TCE. On the other hand, I think that there are eval 
options for TCE which are not available in extbase.

So, if I wanted to have the same validation rules in FE and in BE then 
it is not always possible at the moment.

> I think, it would make more sense to validate objects only when they are 
> changed - Imagine you want to introduce a new validation rule, but you 
> want to keep the existing objects untouched.

True. I was surprised that validation was turned on by default with the 
showAction. It seems sensible to turn it off there.

I'm now going to take a look in the core to see which rules are there 
and see if I can add the rules from extbase somehow.

Regards,
-- 
Jigal van Hemert.


More information about the TYPO3-project-typo3v4mvc mailing list