0

I am running a current TYPO3 13.4.15 instance with the latest EXT:content-blocks. The translation of the texts are work like a charm (also with fallback).

Now I would like to use another image for the translated content what does not work.

My config.yaml looks like this:

...

fields:
  -
    label: Image
    identifier: image
    type: File
    allowed: common-image-types
    extendedPalette: true
    tca:
      config:
        behaviour:
          allowLanguageSynchronization: true
        appearance:
          showAllLocalizationLink: true
          showSynchronizationLink: true
          enabledControls:
            localize: true

I also added the following to:
EXT:sitepackage/Configuration/TCA/Overrides/tt_content.php

$col = 'PREFIX_image'; // I added the right prefix

if (isset($GLOBALS['TCA']['tt_content']['columns'][$col]['config'])) {
    $conf = &$GLOBALS['TCA']['tt_content']['columns'][$col]['config'];

    // Sprach-Umschalter unter dem Feld
    $conf['behaviour']['allowLanguageSynchronization'] = true;

    // IRRE-Lokalisierungs-UI im Bildfeld
    $conf['appearance']['showAllLocalizationLink'] = true;
    $conf['appearance']['showSynchronizationLink'] = true;
    $conf['appearance']['enabledControls']['localize'] = true;
    $conf['appearance']['useSortable'] = true;
}

The translation behaviour is shown correctly, see here:

Translation behaviour

But when I change the image always the original one is shown (fallback).

Does anyone know how to solve this issue?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.