November Happy Hour will be moved to Thursday December 5th.
I've a string property on my Page with the [SelectMany] attribute, and I need to create the page and fill the property programmatically.
[SelectMany]
[CultureSpecific] [SelectMany(SelectionFactoryType = typeof(MyItemsSelectionFactory))] public virtual string MyItems { get; set; }
at the moment I'm using the following for setting the value of [SelectOne] properties...
myObj.MyItem = "99" // where 99 == ContentReference.ID of target page
which works ok, but how do i set multiple values at once?
EPiServer.Shell.ObjectEditing.SelectManyAttribute
I believe you can join the values with a colon, for example, "99,100,101"
Thank you, working for me now.
I've a string property on my Page with the
[SelectMany]
attribute, and I need to create the page and fill the property programmatically.at the moment I'm using the following for setting the value of [SelectOne] properties...
which works ok, but how do i set multiple values at once?
EPiServer.Shell.ObjectEditing.SelectManyAttribute