(no commit message)
[paste/115.git] / gistfile1.txt
index d1800600ad02dc2139d5ffae93314ca784c80d92..598cbac8f8378d96ee5a9a49f8ed2aa1c0585d78 100644 (file)
@@ -6,59 +6,7 @@ TCA
 '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')
 ),
 ...
 ============================================================================