Hi,
I have been struggling with creating options for an itemfield of type dropdownlisteditor through the API (Code First). I have created the item "ItemEntry1" with just one field (Categories) of type dropdownlisteditor:
public class ItemEntry1 : ItemEntry { [Field("Categories", typeof(DropdownListEditor<>))] public IList<string> Categories { get; set; } }
The options in the dropdownlisteditor would I like to create by code too. But how is that done? Does anyone have an example of how to do this?