Custom Attribute Types

Custom Attribute Types

Through their object class, CMS objects as well as widgets can be equipped with attributes of the below types. For examples of how to define attributes in an object class, see Customizing Pages, Creating a Custom Page Type, or Adding an Option to a Widget.

Scrivito typeJS typeDefault
booleanBooleanfalse
dateDatenull
datetimeDatenull
enumStringnull
multienumArray<String>[]
htmlString""
stringString""
stringlistArray<String>[]
integerNumbernull
floatNumbernull
binaryBinarynull
linkLinknull
linklistArray<Link>[]
referenceObjnull
referencelistArray<Obj>[]
widgetlistArray<Widget>[]
[New in 1.33.0 (BETA)] datalocatorDataLocatorDataLocator