This project is read-only.

How do I set default settings for a field?

Topics: Customizing Orchard, Writing modules
Jun 3, 2011 at 12:17 PM

What is the recommended way of setting default values for a field's settings? Should I try to set them in ContentDefinitionEditorEvents.PartFieldEditor? Would setting them in the constructor of the settings object be correctly overwritten when they are loaded from the database? Or is there another recommended way?

Jun 3, 2011 at 4:59 PM

I define them in the constructor of the settings.