Project

General

Profile

Actions

Bug #96531

closed

Allow language sync for tt_content media

Added by Patrick Crausaz over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-01-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
pending-close
Complexity:
easy
Is Regression:
Sprint Focus:

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

gdk_uploads.jpg (97.2 KB) gdk_uploads.jpg Patrick Crausaz, 2022-01-13 15:56
Actions #1

Updated by Oliver Hader over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Oliver Hader over 2 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,
],
...
Actions #3

Updated by Oliver Hader over 2 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!

Actions #4

Updated by Patrick Crausaz about 2 years ago

Setting the showPossibleLocalizationRecords to 0 for the media field does resolve my issue. Thx!

Actions #5

Updated by Oliver Hader over 1 year ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF