[TYPO3-dev] Mark RTE field as required with TCA config

Susanne Moog typo3 at susanne-moog.de
Fri Nov 13 08:36:07 CET 2009


Hello everyone,

I just tried setting a RTE field as required in my extension with the
following TCA:

'field' => array(
	...
	'config' => array (
		'type' => 'text'
		'eval' => 'required'
	),
	'defaultExtras' => 'richtext[*]'
)

This does not work, the field can still be saved even if it's empty. If
I comment the line "defaultExtras" the field is required (exclamation
mark appears).

Am I doing something stupidly wrong or ... ?

Thanks in advance for any help.

Best regards,

Susanne




More information about the TYPO3-dev mailing list