Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following item provider types are currently available:

$type (class shortcut name)Class name and description
jcrNodeFromLocationProvider

info.magnolia.ui.databinding.JcrNodeFromLocationResolutionDefinition

Resolves node content from the current location.

jcrCurrentNodeProvider

info.magnolia.ui.databinding.JcrCurrentNodeProviderDefinition

Returns the parent node.

jcrChildNodeProvider

info.magnolia.ui.databinding.JcrChildNodeProviderDefinition

Resolves child JCR node from the parent.

jsonProvider

info.magnolia.rest.ui.JsonItemProviderStrategyDefinition

Usable mainly in REST -related contexts, for example in client definitions of the REST Client module, it replaces the {id} path parameter with the one passed in the location and then fetches the result using a configured REST call.

The jcrCurrentNodeProvider and jcrChildNodeProvider are suitable for sub forms only since a dependency on a parent node is presupposed to exist.

Used in a sub app definition

In a sub app definition, a strategy is implemented The jcrNodeFromLocationProvider is used for example in the Pages app , where the jcrNodeFromLocationProvider is used (see line 7 below). This provider type resolves a JCR node from its location context:

...

Used in a form definition

A provider strategy can be used to handle data-read operations in forms containing complex field. Consider the following definition of a complex field called address , composed of two simple fields, city and country .

...