Skip to content

Property Types Reference

intermediate
📜Corecms
C# TypeCMS TypeEditorGraph TypeMax Length
stringPropertyStringSingle-line textString255
string with [UIHint(UIHint.Textarea)]PropertyLongStringMulti-line textStringUnlimited
XhtmlStringPropertyXhtmlStringRich text (TinyMCE)RichTextUnlimited
C# TypeCMS TypeEditorGraph Type
intPropertyNumberNumber inputInt
int?PropertyNumberNumber input (nullable)Int
doublePropertyFloatNumberDecimal inputFloat
double?PropertyFloatNumberDecimal input (nullable)Float
C# TypeCMS TypeEditorGraph Type
boolPropertyBooleanCheckboxBool
bool?PropertyBooleanCheckbox (nullable)Bool
C# TypeCMS TypeEditorGraph Type
DateTimePropertyDateDate/time pickerDateTime
DateTime?PropertyDateDate/time picker (nullable)DateTime
C# TypeCMS TypeEditorGraph TypeUse for
ContentReferencePropertyContentReferenceContent pickerContentModelReferenceLink to one content item
ContentAreaPropertyContentAreaDrag-drop area[ContentAreaItemModel]Composable block region
IList<ContentReference>PropertyContentReferenceListMulti-picker[ContentModelReference]Ordered list of references
C# TypeCMS TypeEditorGraph Type
UrlPropertyUrlURL pickerString
LinkItemCollectionPropertyLinkCollectionLink list editor[LinkItemNode]
C# TypeAttributeEditorGraph Type
string[SelectOne]DropdownString
string[SelectMany]Checkbox listString (comma-separated)
C# TypeCMS TypeEditorStores
Blob (on MediaData)PropertyBlobFile uploadBinary file data
ContentReference with [UIHint(UIHint.Image)]PropertyContentReferenceImage pickerReference to image
ContentReference with [UIHint(UIHint.Video)]PropertyContentReferenceVideo pickerReference to video
C# TypeCMS TypeEditorNotes
IList<string>PropertyStringListTag editorStored as string array
CategoryListPropertyCategoryCategory treeBuilt-in category system

When content is indexed in Optimizely Graph, property types are automatically mapped to GraphQL types:

CMS PropertyGraphQL TypeQueryableFilterableSortable
stringStringYesYesYes
XhtmlStringRichText (with .html, .plaintext)Full-textNoNo
intIntYesYesYes
doubleFloatYesYesYes
boolBoolYesYesNo
DateTimeDateTimeYesYesYes
ContentReferenceContentModelReferenceYesBy IDNo
ContentArea[ContentAreaItemModel]Nested queryNoNo
UrlStringYesYesNo

XhtmlString (rich text) properties expose multiple sub-fields in Graph:

query {
ArticlePage {
items {
Body {
html # Full HTML markup
plaintext # Plain text (HTML stripped)
}
}
}
}

ContentArea properties return arrays of typed content:

query {
StartPage {
items {
MainContentArea {
... on TestimonialBlock {
Quote
AuthorName
}
... on CallToActionBlock {
Heading
ButtonText
}
}
}
}
}