Property data types
Shows the property data types for the Optimizely Content Definitions API.
List property data types
List property data types available in the system.
GET /api/episerver/v3.0/propertydatatypes
Common property data types
To create | Data Type | Editing experience | Hints and tips |
---|---|---|---|
Plain short text | PropertyString | One row input | Control the allowed length with the length validation. |
Plain long text | PropertyLongString with hint Textarea | Text area | Control the allowed length with the length validation. |
Html | PropertyXhtmlString | A TinyMCE HTML editor | Â |
Integer value | PropertyNumber | Control the min and max values with the range validation. | |
Double | PropertyFloatNumber | Control the min and max values with the range validation. | |
Date and time | PropertyDate | A date and time picker | Control the min and max values with the range validation. |
Boolean | PropertyBoolean | Checkbox | Â |
Page type | PropertyPageType | Â | Filter items in a list, and so on. |
BLOB | PropertyBlob | Â | Hold binary data (such as an image). Route to a BLOB with pattern {Url to content} or {BlobPropertyName}. |
Language | PropertyLanguage | Checkbox list | |
Sort order | PropertySortOrder | Dropdown list | |
Category | PropertyCategory | Category picker | Categories are managed in the admin UI. |
Dropdown list | PropertyDropDownList | Dropdown list | Available selections are managed from the admin UI. |
Checkbox list | PropertyCheckBoxList | Checkbox list | Available selections are managed from the admin UI. |
Generic list | PropertyCollection with itemType specifying the type of items within the list | ItemType can be built-in dataType like PropertyString or block types specified with the name of the block type. Supports length validation and another item validation optionally depending on item type. Â | |
List of strings | PropertyStringList | Control the allowed length with the itemLength validation. Control the number of strings with length validation. | |
List of integers | PropertyIntegerList | Control the min and max values with the itemRange validation. Control the number of strings with length validation. | |
List of doubles | PropertyDoubleList | Control the min and max values with the itemRange validation. Control the number of strings with length validation. | |
List of dates | PropertyDateList | Control the min and max values with the itemRange validation. Control the number of strings with length validation. |
Work with other content
To create | Data Type | Editing experience | Hints and tips |
---|---|---|---|
Link to any content | PropertyContentReference | Content picker witdrag-and-dropop support | |
Link to a page | PropertyPageReference | Content picker witdrag-and-dropop support | Â |
Link to a media file of any type | PropertyContentReference with hint MediaFile | Content picker with drag and drop support | Link to any file in the media repository. |
Link to an image | PropertyContentReference with hint Image | Content picker with drag and drop support | Lets an editor select content in the media repository by using baseType Image. |
Link to a video | PropertyContentReference with hint Video | Content picker with drag and drop support | Lets an editor select content in the media repository by using baseType Video. |
Link to a media file with the possibility to append information in the URL | PropertyUrl with hint MediaFile, Image or Video | Content picker witdrag-and-dropop support | Each link can be an item inside Optimizely, such as page, media, and external URLs. Use URL instead of PropertyContentReferenct to add information, such as query string parameters to control size. |
Link to internal or external resource | PropertyUrl | Link dialog witdrag-and-dropop support | Â |
Link to multiple external and internal resources | PropertyLinkCollection | Link collection editor with drag-and-drop support | Control the number of links with length validation. |
Link to internal resources | PropertyContentReferenceList | Content picker with drag and drop support | Control the number of content references with length validation. |
Include block data | PropertyBlock and itemType with the name of the block type. | ||
Display content from other content | PropertyContentArea |
Validation
See Content types for validation information.
Updated 8 months ago