0

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.

user1781040
  • 291
  • 2
  • 5
  • 12

2 Answers2

1

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.

Nicolas
  • 253
  • 1
  • 7
  • thank you for your return Nicolas. I added the extension but it works that front. how to make it work directly backoffice. thank you in advance – user1781040 Jul 10 '13 at 10:13
  • Hi. I am not sure to understand 100% of the new problem, would you mind clarifying, so we can best help you out. Thank you! – Nicolas Jul 17 '13 at 09:25
  • the extension is available in front_office no in back_end – user1781040 Jul 17 '13 at 16:21
  • Ok I see. The problem probably is that the extension is enabled per siteaccess, and only then for the front_office one. I would recommend to enable it in settings/override/site.ini.append.php, as described here: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/site.ini/ExtensionSettings/ActiveExtensions – Nicolas Jul 22 '13 at 15:45
0

Another way would be to upload a single "main image" to the image attribute and then embed the rest of the images within the text of the article. The image attribute is meant to provide a consistent structure for the article's main image (i.e. it can be displayed in a search result, in a list of articles, or in a sidebar preview of an article), where the rest of the images would be less structured in their placement and may vary from article to article.

If you consistently have a large number of images per article that would be appropriate to display as a gallery associated with the article, Nicolas' suggestion would be good.