Issue Bug Resolved

#108809Free-mode content not shown in Language Comparison Mode when default language is empty

Eric Harrer 01/30/26, 10:40 updated 08/10/26, 20:00

Description

In the Page/Layout module’s Language Comparison Mode, content elements created in non-default languages using free mode ( l18n_parent = 0 ) are not displayed when the default language column contains no content elements. As a result, existing content in secondary languages is silently omitted from the comparison view.

Steps to reproduce
  1. Create a page with multiple languages.
  2. Do not add any content elements in the default language.
  3. Add one or more content elements in a non-default language using free mode ( l18n_parent = 0 ).
  4. Open the page in the Page or Layout module.
  5. Switch to Language Comparison Mode.

*Expected behavior*
Free-mode content elements from non-default languages are displayed even if the default language column is empty.

*Actual behavior*
No content is rendered. The comparison view remains empty.

*Technical background*
The Language Comparison template ( LanguageColumns.fluid.html ) relies on an iteration over the default language column ( <f:for each="{column.items}"> ) to create the first table row. Free-mode content is rendered exclusively during this first iteration using itemIterator.isFirst. If the default language column contains no items, the loop never executes, no initial row is created, and free-mode content from non-default languages is skipped entirely.

*Proposed solution*
Introduce a fallback rendering path that creates an initial comparison row when the default language column is empty and renders free-mode content from non-default languages, while keeping the existing behavior for connected translations unchanged.

Reviews 4