Created
October 1, 2014 09:59
-
-
Save hendrik-goebel/263b8566d9e56e6c7ac8 to your computer and use it in GitHub Desktop.
TYPO3:TCA Configuration for image including Alt and link field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'image' => array( | |
'exclude' => 0, | |
'label' => 'LLL:EXT:seminars/Resources/Private/Language/locallang_db.xlf:tx_seminars_domain_model_icon.image', | |
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( | |
'image', array('maxitems' => 1, | |
'foreign_types' => array( | |
'0' => array( | |
'showitem' => ' | |
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, | |
--palette--;;filePalette' | |
), | |
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array( | |
'showitem' => ' | |
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, | |
--palette--;;filePalette' | |
), | |
) | |
), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] | |
), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment