Skip to content

Instantly share code, notes, and snippets.

@hendrik-goebel
Created October 1, 2014 09:59
Show Gist options
  • Save hendrik-goebel/263b8566d9e56e6c7ac8 to your computer and use it in GitHub Desktop.
Save hendrik-goebel/263b8566d9e56e6c7ac8 to your computer and use it in GitHub Desktop.
TYPO3:TCA Configuration for image including Alt and link field
'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