In my TCA Configuration I have the following code:
'image' => array(
'exclude' => 0,
'label' => 'LLL:EXT:myext/Resources/Private/Language/locallang_db.xml:tx_myext_domain_model_modelname.image',
'config' => array(
'type' => 'group',
'internal_type' => 'file',
'uploadfolder' => 'uploads/tx_myext',
'show_thumbs' => 1,
'size' => 5,
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
'disallowed' => '',
'eval' => 'required'
),
),
I added 'eval' => 'required'
(last line) but the image is still not required.
On other elements like text 'eval' => 'required'
works:
'homepage' => array(
'exclude' => 0,
'label' => 'LLL:EXT:myext/Resources/Private/Language/locallang_db.xml:tx_myext_domain_model_modelname.homepage',
'config' => array(
'type' => 'input',
'size' => 30,
'eval' => 'trim,required'
),
),
Final question: How to make the image required?