Issue Bug New Orphaned

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

Sebastian Mazza 02/14/25, 16:34 updated 10/07/25, 15:38

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.

Reviews 0

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

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] ContentContentObject conf select.languageField = 0 does not disable language overlay Resolves: #106179 Releases: main