[TYPO3] Make BE field required with TS
Lucas Birk
tlist at birkit.com
Wed May 17 10:51:30 CEST 2006
Hi Søren,
Thanks for the tip about quixplorer..I did not have access
tca.php...until now!
It worked perfectly with the exception that 'default' => '0' had to be
'default' => '' otherwise it did not recognize that the form field was
empty!
I still wonder if its possible with pageTS to set this....editing source
files can become a problem if someone updates the ext.
Regards,
Lucas.
Søren Vedel wrote:
>Hi Lucas,
>
>This is the php way to do it:
>
>Add this in the tca.php file in tt_news
>
>'eval' => 'required',
>
>So it will look like this:
>
> 'archivedate' => Array (
> 'l10n_mode' => 'mergeIfNotBlank',
> 'exclude' => 1,
> 'label' => 'LLL:EXT:tt_news/locallang_tca.php:tt_news.archivedate',
> 'config' => Array (
> 'type' => 'input',
> 'size' => '10',
> 'max' => '20',
> 'eval' => 'required,date', // Here!
> 'default' => '0'
> )
> ),
>
>If you don't have access to the files then install the extension
>'quixplorer'.
>
>I don't know if it is possible with typoscript?
>
>Best wishes
>Søren Vedel
>
>
>
>
>
>
>
>
More information about the TYPO3-english
mailing list