Project

General

Profile

Actions

Bug #106179

open

ContentContentObject conf select.languageField = 0 does not disable language overlay

Added by Sebastian Mazza 29 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2025-02-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The configuration "languageField = 0" in the following TypoScript code does not work as described in the documentation, since it is not possible to fetch a record without translating it.

lib.title = CONTENT
lib.title {
    table = tx_mywachau_domain_model_company
    select {
            pidInList = {$plugin.tx_mywachau.persistence.storagePid}
            where.data = GP:tx_mywachau_mywachaucompanyshow|company
            where.intval = 1
            where.wrap = tx_mywachau_domain_model_company.uid = |
            languageField = 0
            max = 1
        }
}

From the documentation:

By default all records that have language-relevant information in the TCA "ctrl"-section are translated on translated pages.

This behaviour can be disabled by setting languageField = 0.

Reference:

The ContentContentObject->render() method calls ContentObjectRenderer->getRecords() ($this->cObj->getRecords($conf['table'], $conf['select.']);).
The method ContentObjectRenderer->getRecords() calls $tsfe->sys_page->getLanguageOverlay($tableName, $row) unconditional while iterating over the result. Therefore, I can not see how this could work.
However, I need to fetch values from specific records with specific languages without translating them.

No data to display

Actions

Also available in: Atom PDF