'images' => array(
'exclude' => 0,
'label' => 'images',
- 'config' => array(
- 'type' => 'inline',
- 'foreign_table' => 'sys_file_reference',
- 'foreign_field' => 'uid_foreign',
- 'foreign_sortby' => 'sorting_foreign',
- 'foreign_table_field' => 'tablenames',
- 'foreign_match_fields' => array(
- 'fieldname' => 'image'
- ),
- 'foreign_label' => 'uid_local',
- 'foreign_selector' => 'uid_local',
- 'foreign_selector_fieldTcaOverride' => array(
- 'config' => array(
- 'appearance' => array(
- 'elementBrowserType' => 'file',
- 'elementBrowserAllowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
- )
- )
- ),
- 'filter' => array(
- array(
- 'userFunc' => 'TYPO3\\CMS\\Core\\Resource\\Filter\\FileExtensionFilter->filterInlineChildren, 'parameters' => array(
- 'allowedFileExtensions' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
- 'disallowedFileExtensions' => ''
- )
- )
- ),
- 'appearance' => array(
- 'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference',
- 'useSortable' => TRUE,
- 'headerThumbnail' => array(
- 'field' => 'uid_local',
- 'width' => '64',
- 'height' => '64',
- ),
- 'showPossibleLocalizationRecords' => TRUE,
- 'showRemovedLocalizationRecords' => TRUE,
- 'showSynchronizationLink' => TRUE,
- 'enabledControls' => array(
- 'info' => FALSE,
- 'new' => FALSE,
- 'dragdrop' => TRUE,
- 'sort' => FALSE,
- 'hide' => TRUE,
- 'delete' => TRUE,
- 'localize' => TRUE,
- ),
- ),
- 'behaviour' => array(
- 'localizationMode' => 'select',
- 'localizeChildrenAtParentLocalization' => TRUE,
- ),
- ),
+ 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagerUtility::getFileFieldTCA('images')
),
...
============================================================================