This project is read-only.

Using MediaPicker as field in custom Part

Topics: Writing modules
May 6, 2011 at 10:08 PM

I am developing a custom part and one of the properties on my part is an image. I would like to use the MediaPicker in my admin view to allow users to upload/reuse images from their system. Any help on this would be great. Looked for a sample module but could not find one. Thanks again.

May 6, 2011 at 11:51 PM
Edited May 6, 2011 at 11:52 PM

There is already a field made by Innovagency (by my team) that feed your needs.

See here:

May 7, 2011 at 12:49 AM

Thanks for the reply! What would be the best way to use your field in a custom part I am developing? I am not sure how to call this from my view.


Thanks again.

May 8, 2011 at 9:24 PM

I think you dont need a field then...

I sugest you too see how we did in the edit view, and try to recreate a textbox in your part.

May 8, 2011 at 9:39 PM

You can use fields on parts. You can access it from your view like: part.Fields.FieldName.Value (or whatever the field's property is for the media url)