Project

General

Profile

Actions

Bug #46067

closed

Image rendering fails when using 'image' or 'media' field with own CEs (CType)

Added by Tilo Baller about 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-03-06
Due date:
% Done:

100%

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

Description

The Bugfix #45415 breaks image rendering for custom content elements which reuse the fields 'image' or 'media' for own storage of media references.

We use custom content elements similiar to this definition:

$TCA['tt_content']['types']['tx_abc_ce_teaser'] = array('showitem' => 'header,image,tx_abc_ce_customfield1,tx_abc_ce_customfield2,tx_abc_ce_customfieldn');

It could be fixed by extending the $migrateFields variable defined in FrontendContentAdapterService:39:

    static protected $migrateFields = array(
        'tt_content' => array(
            'image' => array(
                'paths' => 'image',
                'titleTexts' => 'titleText',
                'captions' => 'imagecaption',
                'links' => 'image_link',
                'alternativeTexts' => 'altText',
                '__typeMatch' => array(
                    'typeField' => 'CType',
                    'types' => array('image', 'textpic'),
                )
            ),
            [...]
        ),
        [...]
    );

May be it can be moved to DefaultConfiguration so we can extend it like that:

$GLOBALS['TYPO3_CONF_VARS'['FE']['migrateFields']['tt_content']['image']['typeMatch']['types'][] = 'tx_abc_ce_teaser';


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #45415: Content adapter sets imagecaption of media field instead of image fieldClosed2013-02-12

Actions
Related to TYPO3 Core - Bug #46090: Contentobject data Image/Link broken or missingClosed2013-03-07

Actions
Actions

Also available in: Atom PDF