Custom calculated properties
To make a custom calculated property, you need to inherit from the type Telerik.Sitefinity.Web.Services.Extensibility.CalculatedProperty
. This is an abstract class and implements the following mandatory methods:
Sitefinity has one OOB CalculatedProperties: MediaUrlCalculatedProperty
.
The MediaUrlCalculatedProperty
can be configured with the following parameters – absolute and thumbnail. This specifies whether to generate an absolute URL for the property and the type of the thumbnail to return respectively.
The following example is a custom calculated property for getting the provider name of an item: