Sitevision Components
Sitevision offers "native" components to select values from the Sitevision model. Values are retrieved using the appData-object in a server side script context.
In order to utilize Sitevision components, simply add data-component="<type>"
to an input/select element in the configuration template. The following types are supported.
Components
Options
Options are passed to node selectors as data-attributes.
Attribute | Description |
---|---|
data-removable | Makes it possible to clear a selected value |
Types
Apply data-types
to filter what types should be selectable. The following components accept data-types
.
metadata selector
Available types
sv:metadataDateDefinition
sv:metadataUserDefinition
sv:metadataDirectoryDefinition
sv:metadataTextDefinition
sv:metadataSingleDefinition
sv:metadataMultipleDefinition
sv:metadataSystemLinkDefinition
sv:metadataSystemIntegerDefinition
sv:metadataSystemTextDefinition
sv:metadataSystemDefinition
sv:metadataLinkDefinition
sv:metadataTextPortletDefinition
sv:metadataImagePortletDefinition
sv:metadataKeywordDefinition
sv:metadataRelatedInformationDefinition
sv:metadataMediaPortletDefinition
sv:metadataSingleTagDefinition
sv:metadataMultipleTagDefinition
sv:metadataSingleTargetAudienceDefinition
sv:metadataMultipleTargetAudienceDefinition
sv:metadataGeolocationDefinition
page selector
Available types
sv:sitePage
sv:page
sv:article
sv:archive
sv:folder
sv:link
sv:structurePage
sv:structureFolder
sv:structureLink
sv:collaborationGroupPage
sv:collaborationGroupFolder
template selector [@since 10.1]
Available types
page
group
template
Custom selector [@since 9.1]
Select replacement for custom options.
Options
Options are passed to custom selector as data-attributes.
Attribute | Description |
---|---|
data-removable | Makes it possible to clear a selected value |
data-searchable | Makes the options searchable |
List components
In order to utilize Sitevision list components, simply add data-component="<type>-list"
to a hidden input element.
List component values are retrieved in a server side script context using the appData.getArray-
method.
The following types are supported.
Sorting [@since 9.1]
Apply data-sortable
to allow custom sorting of a list component.
Types
Apply data-types
to filter what types should be selectable. The following components accept data-types
.
page-list selector
Available types
sv:sitePage
sv:page
sv:article
sv:archive
sv:folder
sv:link
sv:structurePage
sv:structureFolder
sv:structureLink
sv:collaborationGroupPage
sv:collaborationGroupFolder
file-list selector
Available types
sv:file
sv:folder
image-list selector
Available types
sv:image
sv:folder
template-list selector [@since 10.1]
Available types
page
group
template