Feature #24005

cObject CONTENT does not allow to fetch records that have no translation parent

Added by Benjamin Mack over 2 years ago. Updated 6 days ago.

Status:Under Review Start date:2010-11-10
Priority:Should have Due date:
Assignee:Benjamin Mack % Done:

0%

Category:TypoScript
Target version:6.2 LTS
TYPO3 Version:4.5 Complexity:
PHP Version:5.3
Votes: 1 (View)

Description

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.

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 = '').

(issue imported from #M16332)

nodefaulttranslation.patch (1.5 kB) Administrator Admin, 2010-11-10 16:26


Related issues

related to TypoScript Reference (TSref) - Feature #49106: Add new option "includeRecordsWithoutDefaultTranslation" ... New 2013-06-13

History

Updated by Gerrit Code Review 11 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13083

Updated by Gerrit Code Review 11 months ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13083

Updated by Markus Klein 6 days ago

  • Category deleted (Communication)
  • Target version changed from 0 to 6.2 LTS

Updated by Markus Klein 6 days ago

  • Category set to TypoScript

Updated by Gerrit Code Review 6 days ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/13083

Updated by Gerrit Code Review 6 days ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/13083

Also available in: Atom PDF