[TYPO3-mvc] Multiple Images in Image-Field
Torben Hansen - Skyfillers
T.Hansen at skyfillers.com
Wed Dec 7 09:57:59 CET 2011
Hi Claus,
thank´s for your reply.
The TCA config variables "maxitems" and "minitems" have to be completely lowercase and I wrote them with lowerCamelCase.
Best regards
Torben
> -----Ursprüngliche Nachricht-----
> Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-
> project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Claus Due
> Gesendet: Dienstag, 6. Dezember 2011 18:05
> An: TYPO3 v4 MVC project
> Betreff: Re: [TYPO3-mvc] Multiple Images in Image-Field
>
> 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
>
> _______________________________________________
> 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