Issue Bug Rejected

#105318Similar overlay type to mixed but without the base language

Fabian Michael 10/16/24, 07:01 updated 04/11/25, 11:28

Description

We have the requirement that we need to show only records for a specific language area like DACH but don’t show records from the base language. With the overlay type mixed the fallbacks are working but it also shows all records from the base language. I tried all possible combinations when creating the language aspect and setting setRespectSysLanguage ture/false but nothing gave the desired result.

Say we have the following Records:

- Record 1: EN, DE
- Record 2: EN, DE, AT
- Record 3: EN
- Record 4: EN, AT

Taking the fallback chain into account (AT -> DE) it should result in:

EN: 1 (EN), 2 (EN), 3 (EN), 4 (EN)
DE: 1 (DE), 2 (DE)
AT: 1 (DE), 2 (AT), 4 (AT)
CH: 1 (DE), 2 (DE)

Currently overlay type mixed gives the following results:

EN: 1 (EN), 2 (EN), 3 (EN), 4 (EN)
DE: 1 (DE), 2 (DE), 3 (EN), 4 (EN)
AT: 1 (DE), 2 (AT), 3 (EN), 4 (AT)
CH: 1 (DE), 2 (DE), 3 (EN), 4 (EN)

Overlay type on only gives the requested language:

EN: 1 (EN), 2 (EN), 3 (EN), 4 (EN)
DE: 1 (DE), 2 (DE)
AT: 2 (AT), 4 (AT)
CH: nothing

What we currently need to do in order to achive the desired result is to fetch records in the fallback languge (say DE), take the l10n parent IDs and than fetch the records by IDs and overlay to the desired language. In TYPO3 11 we also had to implement a hook to take the fallback chain into account for the overlays.

Edit: In TYPO3 12 I had to migrate the hook into a listener for the BeforeRecordLanguageOverlayEvent

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 5

  1. Fabian Michael changed description 10/16/24, 07:03

  2. Fabian Michael changed description 10/16/24, 07:08

  3. Fabian Michael changed description 10/16/24, 07:13

  4. Fabian Michael changed description 10/16/24, 11:04

  5. Benni Mack commented and changed tracker Feature Bug status New Rejected TYPO3 Version 12 04/11/25, 11:28

    I wonder if this still occurs in v13 because we fixed this properly in 13.4.9, in addition – I think you need to remove “0” from fallbacks.

    Can you recheck? Otherwise, I placed the Events EXACTLY at “getLanguageOverlay()” for such special use-cases.

    I will close the ticke for the time being, please let me know, if 13.4.9+ still shows the same problems. If so, I will re-open the issue with more information.