DataLocator

New in 1.33.0 (BETA)

DataLocator

A DataLocator allows editors to reference data from CMS content, in an abstract way, in order to specify the data a specific piece of CMS content should use.

Data locators are stored in attributes of the datalocator type inside CMS objects or widgets:

A DataLocator doesn’t have any public properties or methods. It is solely used to retrieve data referencing information from a CMS object or a widget, which must have been configured manually by an editor in the Scrivito UI. This referencing information can then be used with useDataLocator in order to retrieve the referenced data:

Example

See Letting Editors Create Web Interfaces Utilizing Data for a detailed example.