How add Fields in the Orchard 1.4

Topics: Customizing Orchard
May 24, 2012 at 12:17 AM

Hello How add fields type Media Picker in my Content Part programmatically

Developer
May 24, 2012 at 12:53 AM
Edited May 24, 2012 at 12:53 AM
ContentDefinitionManager.AlterPartDefinition("MyContentPart", cfg => cfg
                .WithField("MyImageField", f => f.OfType("MediaPickerField"))
            );
May 24, 2012 at 6:57 AM
sfmskywalker wrote:
ContentDefinitionManager.AlterPartDefinition("MyContentPart", cfg => cfg
                .WithField("MyImageField", f => f.OfType("MediaPickerField"))
            );


Thanks!