MediaPickerField not displaying in the admin for custom module

Topics: Customizing Orchard, General, Writing modules
Oct 4, 2013 at 4:59 AM
Hi, I created a Module with a custom Content Type. I added a custom Part and added a media MediaPickerField to the part. This was all done via a migration. However, the field doesn't show up when I create/edit a new instance of the custom content item.
.WithField("Images", fieldBuilder => fieldBuilder
        .WithSetting("MediaLibraryPickerFieldSettings.Multiple", "True")
        .WithSetting("MediaPickerFieldSettings.Required", "False")
Is there something more I need to do to make this show up? All other text fields that I added above and below it all work as intended. When I go into the admin side of the site and look at the Content Definition of the Content Type it lists the media field under the Custom PartIt appears as follows:

Images (MediaPickerField)
Oct 4, 2013 at 7:50 PM
try "true" and "false" ?
Oct 6, 2013 at 11:04 PM
Yeah I tried that but no luck. But thanks for your help!

I can add on a MediaPickerField field through the admin and it shows up fine. It is only the ones added through a migration.
Oct 6, 2013 at 11:19 PM
I figured it out! I was trying to add a field called "MediaPickerField" when I should have been adding a field called "MediaLibraryPickerField" sorry if i wasted anyone's time.
Marked as answer by piriodica on 10/6/2013 at 4:19 PM