Sitevision Developer
Log in

Log in

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.

Component 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.

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

Available types

sv:sitePage
sv:page
sv:article
sv:archive
sv:folder
sv:link
sv:structurePage
sv:structureFolder
sv:structureLink
sv:collaborationGroupPage
sv:collaborationGroupFolder

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.

Custom selector options

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.

Available types

sv:sitePage
sv:page
sv:article
sv:archive
sv:folder
sv:link
sv:structurePage
sv:structureFolder
sv:structureLink
sv:collaborationGroupPage
sv:collaborationGroupFolder

Available types

sv:file
sv:folder

Available types

sv:image
sv:folder

Available types

page
group
template

Did you find the content on this page useful?