Bug #28564

Language overlay for RECORDS

Added by Daniela Maul almost 2 years ago. Updated 7 months ago.

Status:Resolved Start date:2011-07-29
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:TypoScript
Target version:6.0.0
TYPO3 Version:4.5 Complexity:medium
PHP Version:
Votes: 0

Description

There is no language overlay in RECORDS for pages.
It always shows the default language if I for example select the page title and switch language.

In CONTENT (class tslib_content_Content) this is solved by:

// Language overlay:
if (is_array($row) && $GLOBALS['TSFE']->sys_language_contentOL) {
    if ($conf['table'] == 'pages') {
        $row = $GLOBALS['TSFE']->sys_page->getPageOverlay($row);
    } else {
        $row = $GLOBALS['TSFE']->sys_page->getRecordOverlay($conf['table'], $row, $GLOBALS['TSFE']->sys_language_content, $GLOBALS['TSFE']->sys_language_contentOL);
    }
}


Related issues

duplicated by Core - Bug #42279: RECORDS content object does not fetch translations for pages Resolved 2012-10-22

History

Updated by Andreas Wolf over 1 year ago

  • Category set to TypoScript
  • Complexity set to medium

Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

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

Updated by Gerrit Code Review about 1 year ago

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

Updated by Gerrit Code Review about 1 year ago

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

Updated by Gerrit Code Review about 1 year ago

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

Updated by Thorsten Kahler about 1 year ago

  • Priority changed from Must have to Should have
  • Target version set to 6.0.0
  • % Done changed from 0 to 50

Fixing this bug introduces a breaking change so it should only be applied to master

Updated by Markus Klein about 1 year ago

Hi!

Follow-up to the discussion in gerrit:

I agree with Georg that there should be an option to make default language inclusion possible, but IMHO this doesn't go far enough.
I propose to introduce a possibility where one can choose which language version he wants to include.

Use case:
id 0 = de
id 1 = en
id 2 = fr

For id 2 one might want to "fallback"/include the pages in the English version rather than German.

Updated by Thorsten Kahler 7 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 50 to 100

Issue has been solved with #42279 resp. change baf6f475

Also available in: Atom PDF