Bug #65863

Task #79241: Streamline usage of l10n_mode

content_fallback / mergeIfNotblank fails with content slide, pageOverlayFields is ignored

Added by Sigfried Arnold almost 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
TypoScript
Start date:
2015-03-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I try to output every image referenced in page.media - if a page is translated and there are no images present in "media" i'd expect it to grab the content from the default language. This works perfectly fine for any other field and worked perfectly fine in TYPO3 4.5 LTS but seems to be broken in 6.2 LTS

Those 2 solutions put me closest to what i want to achieve.

Steps to reproduce:
1) put $GLOBALS['TCA']['pages_language_overlay']['columns']['media']['l10n_mode'] = 'mergeIfNotBlank'; in your extTables.php
2) Create a page (a) with some Images in media
3) Create a translation of this page without setting any images
4) Create a subpage (b) of this page without images
5) Create a translation of this subpage without any images
6) output the image

MEDIA = FILES
MEDIA {
    references {
        table = pages
        uid.data = leveluid:-1, slide
        fieldName = media
    }
    begin = 0
    renderObj = COA
    renderObj {
        10 = IMAGE
        10 {
            file {
                import.data = file:current:uid
                treatIdAsReference = 1
            }
        }
    }
}

6) Request Page b in default and translation

This works fine as expected, both show the images form page a

7) add an image to page b without translating it

The image is not on page b either in default nor in translation

8)

Replace the code with this one (this is the solution provided in the wiki http://wiki.typo3.org/File_Abstraction_Layer#How_to_use_.22levelmedia.22_with_6.x_.3F)

MEDIA = FILES
MEDIA {
    references {
        data = levelmedia:-1, slide
    }
    ...
}

Now on both pages a and b the images are shown in default language but in the translation they are not shown on either page.


Related issues

Related to TYPO3 Core - Bug #58352: Invalid localization overlay of cObject FILESClosedOliver Hader2014-04-30

Actions
Related to TYPO3 Core - Bug #48113: typoscript FILES object always uses default language when accessing page resource images of translated images Closed2013-05-11

Actions
Related to TYPO3 Core - Bug #19718: Typoscript: CONTENT | slide: multilanguage not correctly respected in content_fallback modeUnder ReviewBenni Mack2008-12-18

Actions
Related to TYPO3 Core - Feature #59833: levelmedia translation fallbackClosed2014-06-24

Actions
Related to TYPO3 Core - Bug #63353: Media Relation from translated page properties in a workspaceNeeds Feedback2014-11-26

Actions
Related to TYPO3 Core - Bug #78743: Wrong translation behavior for pages/pages_language_overlayRejected2016-11-18

Actions

Also available in: Atom PDF