Bug #106179
openContentContentObject conf select.languageField = 0 does not disable language overlay
0%
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:
Reference: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.
- https://docs.typo3.org/m/typo3/reference-typoscript/12.4/en-us/Functions/Select.html#select-languagefield
- https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/7.4/Feature-68191-TypoScriptSelectOptionLanguageFieldIsActiveByDefault.html
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