Skip to content

Commit

Permalink
[BUGFIX] Fix TCA for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
derhansen committed Dec 4, 2017
1 parent ee795ec commit 22bdb65
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions Configuration/TCA/tx_sfbanners_domain_model_banner.php
Expand Up @@ -197,23 +197,25 @@
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'assets',
[
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference',
'showPossibleLocalizationRecords' => 1,
'showRemovedLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
'showSynchronizationLink' => 1
'foreign_match_fields' => [
'fieldname' => 'assets',
'tablenames' => 'tx_sfbanners_domain_model_banner',
'table_local' => 'sys_file',
],
'foreign_types' => [
\TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette',
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette,
--palette--;;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette',
],
'overrideChildTca' => [
'types' => [
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
],
],
'minitems' => 0,
Expand Down

0 comments on commit 22bdb65

Please sign in to comment.