Multiple Images per class

Author Message

Dan C

Friday 04 March 2005 11:13:11 am

Hi,

I'd like to create a class (let's say for example a product class) that can have many images attached to it. Is this possible with the built in ezpub functionality?

I know I can add image datatypes or object-relation datatypes to the class, but that limits me to the number of datatypes i put into the class. I would like the user to be able to pick if he wants to attach 1 or 20 pictures to the object. This way when displaying the product object I'd be able to have a slideshow gallery.

Also I'd need an easy way for the user to upload multiple images at once--though that is less important.

Any help would be greatly appreciated,

Thanks,

Dan

Eivind Marienborg

Friday 04 March 2005 11:21:22 am

Evening, Dan :)

I solved this at my site by uploading objects of the image class to the (in your case) product class object itself (in other words using the product as parent for the images).

I then made template code for the full view of the product class fetching all children of image class, and displaying them inline with the product. This allows you to have everything from 0 to unlimited number of images.

To upload several images at once, I can recommend the multiplefileupload extension: http://www.ez.no/community/contribs/applications/multiplefileupload

Eivind :)

Ekkehard Dörre

Saturday 05 March 2005 8:28:34 am

To upload several images at once you can use webdav, too,
Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Dan C

Monday 07 March 2005 11:17:33 am

Thanks a lot! got it working great with the multipleupload extension!

Dan

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.