Issue Bug Closed

#59734Translating a CE containing inline elements doesn't apply language to inline elements

Teamgeist Medien 06/20/14, 18:04 updated 10/16/26, 14:05

Description

Well this could be an OSI8 (user mistakes) but I’ve tried every possible combination of the flexform behavior configuration.
When I have a Content Element with a custom inline element configured by flexform and create some inline elements everything is fine. But when i choose to translate all contents to another language (localization) the inline elements are always active in the default language and every change will also be applied on default language elements.

Maybe the options localizationMode or localizeChildrenAtParentLocalization doesn’t work?

Heres an example flexform field configuration which won’t work fine with localization:

<config>
    <type>inline</type>
    <foreign_table>tx_tgmirrelinks_domain_model_link</foreign_table>
    <minitems>0</minitems>
    <maxitems>99</maxitems>
    <foreign_sortby>sorting</foreign_sortby>
    <foreign_match_fields>
        <fieldname>themenLinks</fieldname>
    </foreign_match_fields>

    <appearance>
        <useSortable>1</useSortable>

        <showPossibleLocalizationRecords>1</showPossibleLocalizationRecords>
        <showRemovedLocalizationRecords>1</showRemovedLocalizationRecords>
        <showSynchronizationLink>1</showSynchronizationLink>

        <createNewRelationLinkTitle>LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
    </appearance>

    <behaviour>
        <localizationMode>select</localizationMode>
        <localizeChildrenAtParentLocalization>0</localizeChildrenAtParentLocalization>
    </behaviour>
</config>
Step by Step:
  • Create a flexform with an inline element
  • Create some inline elements and save the CE in the default language
  • Go to the localization view of the “Page” view and choose “Copy default content elements / Standardinhalte kopieren”
  • Open the translated CE and watch the inline records of the default language are activated

Reviews 1

History 1416

  1. Mathias Schreiber commented and changed status New Needs Feedback assigned to Mathias Schreiber <span data-processor="relativetime" data-value="2015-01-26T23:20:41+00:00" > 01/26/15, 23:20 </span>

    Hey guys,

    can you check if this is still the case?

  2. Fabian Schöner commented <span data-processor="relativetime" data-value="2015-05-21T08:30:02+00:00" > 05/21/15, 08:30 </span>

    Hey Mathias,

    i just hit the exact same issue as described here.

    TYPO3 6.2.12.
    Once you translate a CE with Flexform Inline Relations the records are “copied” in DB, but neither sys_language_uid nor l18n_parent are properly set.
    It would work if those fields would be properly set (done that manually in database to test it).

  3. Alexander Opitz changed status Needs Feedback New removed the assignee <span data-processor="relativetime" data-value="2015-08-24T14:27:28+00:00" > 08/24/15, 14:27 </span>

  4. Markus Mächler Mächler commented <span data-processor="relativetime" data-value="2017-08-24T11:09:57+00:00" > 08/24/17, 11:09 </span>

    This is still an issue in TYPO3 7.6. I think this is related to issue https://forge.typo3.org/issues/62562.

  5. Loon Buster commented and changed TYPO3 Version 6.2 8 <span data-processor="relativetime" data-value="2018-07-26T21:24:39+00:00" > 07/26/18, 21:24 </span>

    ..any news after 4 years? that’s so disappointed. sad, really sad.

  6. Gerrit Code Review pushed patch set 1 for master to change 61793 status New Under Review <span data-processor="relativetime" data-value="2019-09-24T13:35:27+00:00" > 09/24/19, 13:35 </span>

  7. Frank Gerards commented <span data-processor="relativetime" data-value="2022-09-15T18:08:55+00:00" > 09/15/22, 18:08 </span>

    Any news on that for TYPO3 11+ ?? This still isnt fixed and a major flaw

  8. Sybille Peters commented and changed status Under Review New <span data-processor="relativetime" data-value="2024-12-27T12:31:10+00:00" > 12/27/24, 12:31 </span>

    patch was abandoned: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61793
    Setting from “Under Review” to “New”

  9. Franz Kugelmann commented <span data-processor="relativetime" data-value="2025-07-16T11:28:17+00:00" > 07/16/25, 11:28 </span>

    Still an issue in v12.
    Editors have no idea that there is an issue, because the language of the inline element is never checked.
    lolli/dbdoctor InlineForeignFieldChildrenParentLanguageDifferent deletes those records.

  10. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-10-16T14:05:44+00:00" > 10/16/26, 14:05 </span>

    Reproduction setup using EXT:styleguide (#59734)

    Status: not reproduced yet. Localizing a tx_styleguide_flex record with a
    inline child in the flex field (flex_3) via the List module works as expected
    on current main.

    What was changed in EXT:styleguide

    File: typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_flex_flex_3_inline_1_child.php

    The child table has languageField, transOrigPointerField and
    @translationSource@ in ctrl, but the type did not show the fields, so the
    language of a child record was invisible in the form.

    -'showitem' => 'input_1, file_1',
    +'showitem' => 'input_1, file_1, --div--;meta, hidden, sys_language_uid, l10n_parent, l10n_source',

    Test data

    • tx_styleguide_flex uid 16, page 82, language 0, flex_3 -> inline_1 = 2
    • tx_styleguide_flex_flex_3_inline_1_child uid 16 and 17, parentid = 16,
      language 0

    Result so far

    Localizing record uid 11 (page 858) into language 8 creates a translated parent
    and a translated child with sys_language_uid = 8, l10n_parent and
    @l10n_source@ set. The reported behaviour does not occur.

    therefore closing the issue.

    if this still happens to you in v14, please create a new issue and add information how to reproduce it.