Definitions data source

The definitions data source provides a tree of registries, definition providers and definition properties.

The definitions data source is part of the Magnolia 6 UI framework. There is no fully qualified class name for it.

If you work with the Magnolia 5 UI framework, see Content connector instead.

Example definition

datasource:
  name: definitions

The data source for the Definitions app takes only an optional name property.

Data source components

Module component mappings can be defined in the context of the current data source (a component section should have an id in the form of <id>datasource-<ds-name></id>, where <ds-name> is configured in the definition).

Type Implementation Description

info.magnolia.ui.datasource.ItemResolver

info.magnolia.definitions.app.data.DefinitionItemResolver

Converts path to actual item and back.

info.magnolia.ui.contentapp.ItemDescriber

info.magnolia.definitions.app.data.DefinitionItemDescriber

Displays description for selected item(s) at the bottom of app.

info.magnolia.ui.contentapp.browser.TreePresenter

info.magnolia.definitions.app.overview.tree.DefinitionsTreePresenter

Displays items as tree.

Component mappings in module descriptor
<components>
  <id>datasource-definitions</id>
  <component>
    <type>info.magnolia.ui.datasource.ItemResolver</type>
    <implementation>info.magnolia.definitions.app.data.DefinitionItemResolver</implementation>
  </component>
  <component>
    <type>info.magnolia.ui.contentapp.ItemDescriber</type>
    <implementation>info.magnolia.definitions.app.data.DefinitionItemDescriber</implementation>
  </component>
  <type-mapping>
    <type>info.magnolia.ui.contentapp.browser.TreePresenter</type>
    <implementation>info.magnolia.definitions.app.overview.tree.DefinitionsTreePresenter</implementation>
  </type-mapping>
</components>
Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the DX Core docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules