[TYPO3-mvc] Multiple Images in Image-Field

Claus Due claus at wildside.dk
Tue Dec 6 18:05:16 CET 2011


Hi Torben,

Images in Extbase are still just strings. The value must be a CSV of file names relative to the uploadfolder given in TCA so perhaps what you are setting as the "image" property is not correct?

Btw, I made a form-compatible mutli-upload/file-list ViewHelper which you might be able to use (it bypasses a lot of the worries when working with files in model object properties): http://fedext.net/viewhelpers/form/multi-upload/

Cheers,
Claus

On Dec 6, 2011, at 5:16 PM, Torben Hansen - Skyfillers wrote:

> Hello all,
> 
> I´ve created my domain model with the extension builder and added a property of the type "image". After installing my extension, everything is fine and I can create records in TYPO3s backend. There is only a problem when saving a record with multiple images in the image-field.
> 
> The TCA for the image-field is configured like this:
> 
> 'config' => array(
>                'type' => 'group',
>                'internal_type' => 'file',
>                'uploadfolder' => 'uploads/tx_testextension',
>                'show_thumbs' => 1,
>                'size' => 3,
>                'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
>                'disallowed' => '',
>                'minItems' => '0',
>                'maxItems' => '10',
>                'autoSizeMax' => '10'
> ),
> 
> The selection of the images works fine. But after I save the record, only the first image gets saved an all other images are ignored.
> 
> Is this behavior by design?
> 
> Best regards
> Torben
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list