[TYPO3-core] RFC #16332: cObject CONTENT does not allow to fetch records that have no translation parent
Helmut Hummel
helmut at typo3.org
Wed Nov 10 19:40:14 CET 2010
Hi Benni,
Am 10.11.2010 16:29, schrieb Benjamin Mack:
>
> Problem:
> When you fetch records through the TypoScript object "CONTENT" (or,
> let's say through ".select" in general), you have an option called
> "languageField" in order to fetch only records that match the current
> language.
>
> What "select" does here is that it fetches all records in the default
> language ("0,-1") and then overlays them with the records of the current
> language.
>
> However, it's not possible to fetch the records that don't have a
> localization parent.
This is only true if you set
config.sys_language_overlay to true (or hideNonTranslated)
To understand your RFC right:
Do you need to override this setting for special TypoScript objects
(currently you can only set this globally for a page)
or do you want to overlay records that have a l10n parent but
additionally also show records that do not have a l10n parent?
What your patch currently does is, if TYPO3 is configured to be in
overlay mode, select records in the given language, or the default
language and perform a language overlay on all of them (which does not
make much sense for records which are already in the right language imho).
So there're either superfluous calls to
$GLOBALS['TSFE']->sys_page->getRecordOverlay or the override of the
overlay mode does not work correctly, depending on you intention with
this RFC.
Or do I miss something?
Regards Helmut
More information about the TYPO3-team-core
mailing list