Month: July 2017

How to use SelectMany to work with flags enum

31 July 2017 EPiServer, EPiServer properties No comments

EPiServer provides a build-in SelectionFactory for enums and SelectOne attribute for selecting single value. But for flags enum we want to have a checkbox list and be able to select more than one value. In this article I’d like to show how to use SelectMany attribute for editing flags enum property.
property enum flags using SelectMany attribute
(more…)

How to turn off autopublish in ContentArea

25 July 2017 EPiServer, EPiServer properties No comments

When creating new block directly from ContentArea, the block is automatically published and added to ContentArea. This behavior is not configurable. In this article I will show how to add new block as a draft.
Creating new block from ContentArea
(more…)

Generic PropertySoftLinkIndexer for ListProperty

6 July 2017 EPiServer, EPiServer properties No comments

When creating new property type that stores content references then it’s recommended to implement PropertySoftLinkIndexer class. It will be used for indexing links to other content. For example when item type of PropertyList has ContentReference property then we should implement PropertySoftLinkIndexer returning all links from the list. In this article I will show how to implement generic PropertySoftLinkIndexer for PropertyList.
PropertySoftLinkIndexer deleting page
(more…)