Try our conversational search powered by Generative AI!

Collection<T> Property in EPiServer


Is there an out of the box Collection Property in EPiServer? All I could see is Links Collection. But I would like a Collection of String. or a collection of a Class with 2 string values. Is it possible?


Jun 09, 2011 2:33

I think the closest you get OOTB is the PropertyAppSettingsMultiple which is flavor of PropertyAppSettings which can store multiple selected values. But the values that can be selected are only out of a predefined set (specified in AppSettings) and can only be strings.

The simplest way otherwise would be to store comma separated values or xml in a string. You can of course build your own edit control to hide how it's stored and display something nicer. But it would be very difficult (impossible?) to create an edit control which could handle any type in a good way which I guess is the reason no such property exists OOTB.

Jun 09, 2011 7:53

Jan, I've used, works fine. Not sure if there is an better option out there at the moment.

Jun 09, 2011 9:51

Thanks guys.

Jun 16, 2011 7:12

My multiple property control provides an easy way of creating collections of classes.  It can be downloaded from here

Jun 19, 2011 20:53

IMHO Itera.MultiProperty works like a charm to solve this

Jun 20, 2011 10:41
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.