#106360allowLanguageSynchronization not working for file references in tt_content
Description
I’ve set these TCA configurations:
$GLOBALS['TCA']['tt_content']['columns']['assets']['config']['appearance']['showPossibleLocalizationRecords'] = false;
$GLOBALS['TCA']['tt_content']['columns']['media']['config']['appearance']['showPossibleLocalizationRecords'] = false;
When I create translations of the content elements with settings like this …
Screenshot%202025-03-11%20170835.png
I still see the image of the default language in the translated frontend.
The behavior is the same for assets in “textmedia” and for download files in “uploads”. I already started to investigate with Xdebug and it looks like the TYPO3\CMS\Frontend\DataProcessing\FilesProcessor and TYPO3\CMS\Frontend\Resource\FileCollector in combination always only check for the file references by tt_content.uid field. But because of language overlay, this field always contains the default language’s uid.
Reviews 1
Related issues 1
Files 7
History 9
-
Albrecht Köhnlein commented <span data-processor="relativetime" data-value="2025-03-26T20:56:29+00:00" > 03/26/25, 20:56 </span>
I don’t think, it’s a duplicate. The problem in #106303 was the translation of the file meta data, while the files are the same. My described problem is that I would like to set “custom value” with completely different files.
-
Lina Wolf commented and changed attached clipboard-202505120913-yegks.png <span data-processor="relativetime" data-value="2025-05-12T07:22:53+00:00" > 05/12/25, 07:22 </span>
I can confirm the problem with TYPO3 13.4.9
We have a multi-translation menu-sitemap-pages using the default TypoScript of the content Element and a custom template that displays the content of the media field connected via the fieles data processor.
The media field has `$GLOBALS[‘TCA’][‘pages’][‘columns’][‘media’][‘config’][‘behaviour’][‘allowLanguageSynchronization’] = 1` as is provided by default by the Core.
The editors translated some icons but not others.
clipboard-202505120913-yegks.png
If the option “Value of default language” is set and the parent table does have a media file still the result by the dataproccessor is empty.
The problem seems to be in that FileCollector::getFileReferences only takes into account weather the table is localizable by checking the ctrl->languageField and ctrl->transOrigPointerField but does not seem to take settings for the columns (‘allowLanguageSynchronization’) or settings in field `l10n_state` into account.
The previous company had written their own ViewHelper to display the icons and I was hoping I could switch to using the DataProcessor. However it seems like the FileCollector behind the FilesProcessor does not really support multiple langauges on this level.
-
Lina Wolf commented and changed attached media.patch attached media.patch <span data-processor="relativetime" data-value="2025-05-12T08:34:07+00:00" > 05/12/25, 08:34 </span>
Attached patch solved the problem on my site, respecting settings of allowLanguageSynchronization as stored in field ‘l10n_state’. I did not check however if ‘l10n_state’ is configurable as we never did that.
-
André Buchmann commented and changed attached clipboard-202508060905-c1vjt.png attached clipboard-202508060908-ff0bm.png <span data-processor="relativetime" data-value="2025-08-06T07:09:58+00:00" > 08/06/25, 07:09 </span>
-I don’t think this issue is only related to allowLanguageSynchronization, but on tt_content images in general.
-
-https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.4/Feature-94623-Tt_contentImagesAssetsMediaShowPossibleLocalizationRecords.html added “showPossibleLocalizationRecords” to tt_content file fields. With this setting its possible to add other media files in the translation:
-
clipboard-202508060905-c1vjt.png-In the frontend the file reference collection is empty
-
André Buchmann commented and changed attached clipboard-202508061554-ggbtt.png <span data-processor="relativetime" data-value="2025-08-06T13:55:38+00:00" > 08/06/25, 13:55 </span>
Can’t reproduce this error in TYPO3 13.4.15 with default TYPO3 textmedia. Doesn’t matter if I use
showPossibleLocalizationRecords(standard) orallowLanguageSynchronization$GLOBALS['TCA']['tt_content']['columns']['assets']['config']['behaviour']['allowLanguageSynchronization'] = true; unset($GLOBALS['TCA']['tt_content']['columns']['assets']['config']['appearance']['showPossibleLocalizationRecords']);
However, in ContentBlocks context only the localized media assets show up. Additional media assets added to a translation only, wont show up. See comparison below. The blue image is also in the default language present. Both elements have an additional rainbow-colored image added in the translation.
clipboard-202508061554-ggbtt.pngUpdate: Issue created at Content-Blocks repository: https://github.com/FriendsOfTYPO3/content-blocks/issues/413
-
Oliver Hader changed category <span data-processor="relativetime" data-value="2026-02-05T20:54:30+00:00" > 02/05/26, 20:54 </span>
-
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-11T17:34:36+00:00" > 11/11/26, 17:34 </span>Not reproducible on current main or since 13.4.10: FileCollector uses the localized uid of the overlaid record, and #106554 made sure it also reaches data processors used via f:cObject. Synced (“value of default language”) and custom file references both render correctly in the translated frontend. The Content Blocks case is tracked in content-blocks#413.
-
Benni Mack changed Related to #106554 <span data-processor="relativetime" data-value="2026-11-11T17:34:55+00:00" > 11/11/26, 17:34 </span>
is this maybe a duplicate of https://forge.typo3.org/issues/106303 with a potential fix with https://review.typo3.org/c/Packages/TYPO3.CMS/+/88482?