You are here: Admin Mode > Customize Edit Mode > Working with Properties > Custom Property Types

Custom Property Types

A property is defined by its name and data type and the page type it is connected to. EPiServer CMS has a number of built-in data types for properties and a whole infrastructure in place to make it easy for editors to work with the properties and their values as they create and maintain web pages.

There are two types of page property in EPiServer CMS:

Static properties are created, named and given a data type and other settings in Admin mode. The only thing left for editors to do in Edit mode is to provide a value for the property.

Dynamic properties are used to store a property on one or more pages simultaneously. The different dynamic properties that are available vary and are set up under Dynamic Properties in Admin mode. Dynamic properties are always stored on the page that you have selected and all its sub-pages. If you have other values stored on one of the sub-pages, you can choose to retain them or overwrite the values. Dynamic properties are added in the same was as other properties although from the Dynamic Properties menu option on the Page Type tab in Admin mode.

It is always possible to create new types by inheriting from the existing ones. There are 10 property data types available in EPiServer CMS. (The names of property data types are slightly different in Admin mode; keep this in mind when you add properties in Admin mode.)

Data Type Name Data Type Name in Admin Mode Description
Boolean Selected/not selected True or false.
Number Integer An integer.
FloatNumber Floating point number Number with decimals, e.g. 3.14.
PageType Page Type EPiServer CMS page type defined in Admin mode.
PageReference Page Link to a web page.
Date Date/Time Date and time.
String String (<=255) Short text, fewer than 256 characters in length.
LongString Long String (>255) Used for text that can exceed 255 characters in length, for example the main Editor field in Edit mode.
Category Category selection List of categories.
LinkCollection Link collection A collection of links.