• Scrivito CMS
    • Overview
    • For the Enterprise
    • For Marketing
    • For Editors
    • For Developers
    • Technology
    • Integrations
    • Pricing
  • Resources
    • Blog (justrelate.com)
    • News and Release Notes
    • Product Sheet (PDF)
    • Widgets
  • Solutions
  • Developers
    • Documentation Overview
    • Editor’s Guide
    • Admin’s Guide
    • Quickstart Guides
    • Extending the Example App (Basic)
    • Extending the Example App (Advanced)
    • Key Concepts
    • Integrations
    • Web Development Guides
    • Advanced Use Cases
    • Going Live
    • JavaScript SDK API
    • News and Release Notes
    • Contact Customer Support
  • Partners
    • Scrivito CMS for Partner Agencies
    • Partners
    • Become a Partner
  • Sign up
  • My Scrivito
  • EN
    EnglishDeutsch
  • Developers
New in 1.33.0 (BETA)

useDataLocator(dataLocator)

Evaluates a given DataLocator and returns a DataScope instance.

The function returns a DataScope, based on the choices the editor made. If the argument is null, undefined, or an empty datalocator attribute value (i.e. the editor has not filled it out yet), an empty DataScope is returned.

Params

dataLocator (DataLocator) – the value of a datalocator attribute of a CMS object.

Returns

A DataScope that enables application developers to interact with data referenced by the DataLocator.

Example

A widget that lists data:

  • Documentation Overview
  • Editor’s Guide
  • Admin’s Guide
  • Quickstart Guides
  • Extending the Example App (Basic)
  • Extending the Example App (Advanced)
  • Key Concepts
  • Integrations
  • Web Development Guides
  • Advanced Use Cases
  • Going Live
  • JS SDK API
  • News and Release Notes
  • Contact Customer Support
  • useDataItem
  • useDataLocator
Scrivito CMS
  • Overview
  • For the Enterprise
  • For Marketing
  • For Editors
  • For Developers
  • Technology
  • Integrations
  • Solutions
  • Pricing
Resources
  • News and Release Notes
  • Product Sheet (PDF)
  • Blog (justrelate.com)
Partner
  • Scrivito CMS for Partner Agencies
  • Project Partners
  • Become a Partner
Support
  • Contact Support
  • Documentation
  • Widget Marketplace
  • Dashboard Login
  • Service Status
JustRelate Group
  • About Us
  • Customers
  • Imprint
  • Privacy Policy
  • Transparent Information
  • Terms of Service
  • Contact Us

© 2023 – All rights reserved

Scrivito is proudly made by the JustRelate Group in Berlin, Germany, and Wrocław, Poland.