Issue Bug Closed

#45125Hide "Create new relation" for FAL fields, if maxitems = 1 and an image is selected

Tobias Klepp 02/04/13, 09:26 updated 10/19/17, 21:37

Description

It would be a better useability, if the link “Create new relation” hide, when an image is selected and only one image is allowed.

I have the following code in my TCA definition:

‘image’ => array(
‘exclude’ => 1,
‘label’ => ‘LLL:EXT:my_extkey/Resources/Private/Language/locallang_db.xlf:tx_myextkey_domain_model_tablename.image’,
‘config’ => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(‘media’, array(‘maxitems’ => 1))
),

Reviews 2