How add Fields in the Orchard 1.4

Topics: Customizing Orchard
May 23, 2012 at 11:17 PM

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

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


Thanks!