Commit 5b3162c5 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[FEATURE] showPossibleLocalizationRecords for tt_content image, assets, media

A tt_content default language record with images, assets or media
is localized ("translate" / "connected" mode, not "copy") to
another language. Attached images, assets and media will be
localized, too.

If later the default language record is changed to add another
image, asset or media, the localized record now shows the
additional default language record relation as shadowed box
and allows localizing this additional record with a single click.

This is done by setting for those TCA inline relations:

* showPossibleLocalizationRecords works on l10n_parent and does NOT
  honor l10n_source (yet?): In a 'localization chain' (default is
  localized to dutch, dutch is localized to german), an additional
  image, asset or media on the dutch record *is not* shown in the
  german record, but an additional record in default language *is*
  shown in the german record.
* showAllLocalizationLink: This is an optional additional button to
  localize all missing relations with one click, not only single
  ones. This is *not* enabled with the patch: The additional button
  bloats the already pretty complex interface even more, and editors
  often only need to deal with one or at least only a small list of
  additional relations. Instances where editors often deal with lots
  of such inline relations can easily enable that button on their own.
* showSynchronizationLink: The behavior of that button is in practice
  very similar to showAllLocalizationLink and *not* enabled for similar

Change-Id: I34e469171ac34b06ff0350e8e3725188f6de625b
Resolves: #94623
Releases: master

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Jochen's avatarJochen <>
Tested-by: Nikita Hovratov's avatarNikita Hovratov <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Jochen's avatarJochen <>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent 07ecd7c1
.. include:: ../../Includes.txt
Feature: #94623 - tt_content images, assets, media showPossibleLocalizationRecords
See :issue:`94623`
When a default language content element is localized to another language
in "connected" / "translation" mode (as opposed to "copy"), relations like
images and assets connected to the default language record are localized as well.
When the default language element is later changed and additional images, assets
or media relations are added, the localized content element now shows those new
default language relations as shadowed box and allows to localize them with one click.
This is a usability improvement for editors, who now see which tt_content
relations of casual elements like "Image" and "Media" are missing when
editing localizations. They can localize those with one click.
.. index:: Backend, TCA, ext:backend
......@@ -617,7 +617,8 @@ return [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', [
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference',
'showPossibleLocalizationRecords' => true,
// custom configuration for displaying fields in the overlay/reference table
// to use the imageoverlayPalette instead of the basicoverlayPalette
......@@ -661,7 +662,8 @@ return [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.asset_references',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('assets', [
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.asset_references.addFileReference'
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.asset_references.addFileReference',
'showPossibleLocalizationRecords' => true,
// custom configuration for displaying fields in the overlay/reference table
// behaves the same as the image field.
......@@ -1012,7 +1014,8 @@ return [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:media',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media', [
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:media.addFileReference'
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:media.addFileReference',
'showPossibleLocalizationRecords' => true,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment