[TYPO3-core] RFC #16332: cObject CONTENT does not allow to fetch records that have no translation parent

Benjamin Mack benni at typo3.org
Wed Nov 10 16:29:59 CET 2010


Hey,

this is a SVN patch request.

Type: small feature

Branch: trunk

BT reference:
http://bugs.typo3.org/view.php?id=16332

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.

Solution:
The patch introduces a new option called
"includeRecordsWithoutDefaultTranslation" that also checks for records
with the languageField matching the current language, where there is no
translation parent (l10n_parent = '').


All the best,
Benni.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nodefaulttranslation.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101110/dc940a2e/attachment.txt>


More information about the TYPO3-team-core mailing list