[BUGFIX] Improve l10n_mode config for sys_file_reference
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_reference.php
index ca29a2e..e8928c9 100644 (file)
@@ -26,6 +26,9 @@ return array(
                'enablecolumns' => array(
                        'disabled' => 'hidden'
                ),
+               'typeicon_classes' => array(
+                       'default' => 'mimetypes-other-other'
+               ),
                'security' => array(
                        'ignoreWebMountRestriction' => TRUE,
                        'ignoreRootLevelRestriction' => TRUE,
@@ -149,7 +152,7 @@ return array(
                        )
                ),
                'title' => array(
-                       'l10n_mode' => 'mergeIfNotBlank',
+                       'l10n_mode' => 'prefixLangTitle',
                        'exclude' => 1,
                        'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.title',
                        'config' => array(
@@ -158,10 +161,10 @@ return array(
                                'eval' => 'null',
                                'placeholder' => '__row|uid_local|metadata|title',
                                'mode' => 'useOrOverridePlaceholder',
+                               'default' => NULL,
                        )
                ),
                'link' => array(
-                       'l10n_mode' => 'mergeIfNotBlank',
                        'exclude' => 1,
                        'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.link',
                        'config' => array(
@@ -181,12 +184,13 @@ return array(
                                                ),
                                                'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
                                        )
-                               )
+                               ),
+                               'softref' => 'typolink'
                        )
                ),
                'description' => array(
                        // This is used for captions in the frontend
-                       'l10n_mode' => 'mergeIfNotBlank',
+                       'l10n_mode' => 'prefixLangTitle',
                        'exclude' => 1,
                        'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.description',
                        'config' => array(
@@ -196,10 +200,11 @@ return array(
                                'eval' => 'null',
                                'placeholder' => '__row|uid_local|metadata|description',
                                'mode' => 'useOrOverridePlaceholder',
+                               'default' => NULL,
                        )
                ),
                'alternative' => array(
-                       'l10n_mode' => 'mergeIfNotBlank',
+                       'l10n_mode' => 'prefixLangTitle',
                        'exclude' => 1,
                        'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.alternative',
                        'config' => array(
@@ -208,6 +213,7 @@ return array(
                                'eval' => 'null',
                                'placeholder' => '__row|uid_local|metadata|alternative',
                                'mode' => 'useOrOverridePlaceholder',
+                               'default' => NULL,
                        ),
                ),
        ),