Bug #96531
closedAllow language sync for tt_content media
0%
Description
tt_content,
CType uploads,
field: media
When translating a content element of type "File Links" (uploads) the files of the default language are grayed out and not possible to edit or translate. New file references can be created for the translated record, but the default language files continue to be visible/grayed out (see screenshot).
This field should have "allowLanguageSynchronization" enabled by default:
$GLOBALS['TCA']['tt_content']['columns']['media']['config']['behaviour']['allowLanguageSynchronization'] = true;
Files
Updated by Oliver Hader almost 3 years ago
When enabling allowLanguageSynchronization
you'd probably want to disable existing inlineLocalizeSynchronize
(handled in DataHandler
) features, such as showPossibleLocalizationRecords
, e.g.
$GLOBALS['TCA']['tt_content']['columns']['media']['config']['behaviour']['allowLanguageSynchronization'] = true; unset($GLOBALS['TCA']['tt_content']['columns']['media']['config']['appearance']['showPossibleLocalizationRecords']);
The differences are
allowLanguageSynchronization
¶
→ works on tt_content.media
and all related child items
inlineLocalizeSynchronize
(like showPossibleLocalizationRecords
)¶
→ works on each @tt_content.media.<child-item>
individually
Find examples at https://docs.typo3.org/m/typo3/reference-tca/11.5/en-us/ColumnsConfig/Type/Inline/Examples.html#file-abstraction-layer, focussing on the following TCA type=inline
properties in the appearance
section (documented at docs.typo3.org/m/typo3/reference-tca/11.5/en-us/ColumnsConfig/Type/Inline/Properties/Appearance.html):
... 'appearance' => [ 'showPossibleLocalizationRecords' => false, 'showSynchronizationLink' => false, 'showAllLocalizationLink' => false, ], ...
Updated by Oliver Hader almost 3 years ago
- Status changed from New to Needs Feedback
- Tags set to pending-close
Disabling showPossibleLocalizationRecords
should fix this, please report back in case there are still additional problems. Thx!
Updated by Patrick Crausaz almost 3 years ago
Setting the showPossibleLocalizationRecords to 0 for the media field does resolve my issue. Thx!
Updated by Oliver Hader over 2 years ago
- Status changed from Needs Feedback to Closed