Try our conversational search powered by Generative AI!

Add list support for content properties

Fixed in

EPiServer.CMS.Core 12.10.0


Aug 24, 2022


Nov 22, 2022


CMS Core


Closed, Acceptance tests pass


Built-in support for list properties on content models was limited to primitive types such as string, number and ContentReference. List properties are now supported as individual properties (like int, string, XhtmlString etc) including Block types. You can now define properties on content models like:

public virtual IList<string> MyStrings {get; set;}
public virtual IList<TeaserBlock> MyTeasers {get; set;} 

where TeaserBlock in example above is a defined block in CMS, like:

public class TeaserBlock : BlockData
  • Usage is tracked (soft link indexing) for items that can reference content (like IList<ContentReference>). 
  • Import/export of list definitions and data is supported.
  • New list properties are JSON-based (unless explicitly specified, for example, through BackingTypeAttribute).