This project is read-only.

New Media Content Type with Image

Topics: Customizing Orchard
Jan 26, 2015 at 5:40 PM
Edited Jan 26, 2015 at 5:46 PM
I'm trying to define my own content type that is a media item with an image. I have a new content type called Banner that has a field for first name, last name, and an image upload field (rimango.imagefield) I have also attached the Common, Title, Media, Identity, and Image parts to my content type. I have set this content type to be used with a custom form and set it to create the content item when submitted but the uploaded image doesn't show as the content item's image and the thumbnail's src attribute is blank. Any ideas on how to get this working? Basically I need to create a media content type that is an image and contains the name of the person who uploaded it which can be created from a form. I then need to be able to query for all instances of this content type that are published to get a list of images to use as the banner. I can't use the MediaLibraryPickerField because that requires a user to be logged in. Thank you.