[TYPO3-dev] Image rendering fails when using 'image' or 'media' field with own CEs (CType)

Tobias Liegl tliegl at gmail.com
Thu Apr 25 16:33:56 CEST 2013


Hi,

in my TYPO3 6.1 RC1 it's still there:

typo3/sysext/core/Classes/Resource/Service/FrontendContentAdapterService.php

static protected $migrateFields = array

Tobi


Am 25.04.13 14:07, schrieb Christian Ludwig:
> Hi,
>
> Did anyone do a test with TYPO3 v6.1?
> There I cannot find the __typeMatch key and the fieldIsInType() method
> war removed too.
>
> ---
> Christian
>
> Tobias Liegl wrote:
>> Hi Georg,
>>
>> the "types" part in this code in
>> (typo3/sysext/core/Classes/Resource/Service/FrontendContentAdapterServ
>> ice.php) should be extendable through extensions - so you can add your
>
>> own CType.
>> Otherwise the image rendering doesn't work in own CTypes.
>>
>> 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'),
>>                   )
>>               ),
>>               [...]
>>           ),
>>           [...]
>>       );
>>
>> If I add my CType there manually - for example 'types' =>
>> array('image', 'textpic', 'my_teaser'), everything works as expected.
>>
>>
>> If a test extension would be helpful, I can create one.
>>
>>
>> Tobi
>>
>>
>> Am 25.04.13 10:55, schrieb Georg Ringer:
>>> Hi,
>>>
>>> does the proposed patch fix it?
>>>
>>>
>>> can you provide a simple test extension how this can be tested?
>>>
>>> georg
>>>
>>
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>
>
>




More information about the TYPO3-dev mailing list