ContentPart with multiple images

Topics: Administration, Customizing Orchard, Writing modules
Oct 31, 2012 at 1:25 PM

I have a ContentPart which can have 0 to N images associated with it.

Is this possible out of the box with orchard?

Or should I use the placeholder route? e.g. 'Image1', 'Image2' 'Image3' etc

Developer
Oct 31, 2012 at 1:36 PM

Could you elaborate what you're trying to achieve?

Oct 31, 2012 at 1:51 PM

Certainly, I'll try:

----

I have a ContentPart called 'Apartments' and it can have multiple images associated with it.

Ideally I would like it so that in the Admin section, when you create / edit an Apartment you are given the ability to 'Add Image'.  Clicking the button will bring up the media picker for selecting / uploading an image.  Once the image is added it will be added to the list of associated images for the apartment.

You can add as many images as you want to the apartment. 

You'd also be able to remove images from the apartment, perhaps by clicking a 'remove image' link next to the image name.

----

Hope that makes sense.

I appreciate this is quite a complicated task; essentially managing a many to many relationship from within the content part interface.

Oct 31, 2012 at 1:53 PM

You could try http://gallery.orchardproject.net/List/Modules/Orchard.Module.Amba.ImageMultiPicker

Oct 31, 2012 at 5:46 PM

Thanks, I'll have to have a proper look at that.  Not sure it's what I'm after as I don't think it works on ContentTypes.

Might be able to use it on an image carousel part of the site though.