Search code examples
imagefile-uploadimage-uploadingezpublishmulti-upload

Download multiple images ezpublish in ezpublish attribute


I have somme problem to upload a lot of image. Into my class article i would like to upload multi-images in my attribute image.

Thanks for your feeback.


Solution

  • I would recommend to systematically create a "Gallery" object (either located under the "Article" object, or in the Media library), and then populate it (ie. upload images) using the ezmultiupload extension to push multiple pictures in one shot.

    You can check the ezmultiupload extension on its code repo, or use the one that is shipped by default in the builds of eZ Publish Community Project (cf http//share.ez.no/latest ).

    Then, to display the picture, you need to alter the "Article" class' full view template, and fetch the related "Gallery" object, then loop through all children of it and display them.

    I hope this hels.