Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: widen the table

...

The datasource properties:

type

optional, default is JCR

The type of the data source. If the value is JCR, the definition class must implement

Javadoc resource link
classNameinfo.magnolia.types.datasource.jcr.JcrDataSourceDefinition
renderTypeasynchronous
.

workspace

Anchor
anc-workspace-property
anc-workspace-property
required

The name of the JCR workspace to store the content items.

When the definition item is loaded, and if there is no workspace registered by the given name and the autoCreate property is set to true, the system will register the workspace.

rootPath

optional, default is /

The root path for content type items in the given JCR workspace.

namespaces

Anchor
anc-namespaces-property
anc-namespaces-property
optional

A list of JCR namespace names.

<namespace‑name>

A JCR namespace name.

When the definition item is loaded, and if the given JCR namespace hasn't been registered yet, the system will register the namespace.

The namespace name must comply with the rules for XML namespaces, see https://www.w3.org/TR/REC-xml-names/#NT-NCName, https://www.w3.org/TR/REC-xml/#sec-common-syn.

autoCreate

Anchor
anc-autocreate-property
anc-autocreate-property
optional , default is false

If set to true, the following modifications will take place in the entire content type definition.

  • Workspace
    • Register the JCR workspace defined by the workspace property if it hasn't been registered yet.

  • Namespace
    • Register the JCR namespaces defined by the namespaces property if they haven't been registered yet.
    • Remap the namespace prefix to the new namespace URI if the namespace URI has been modified.
    • Re-register the namespace if the namespace prefix has been modified.
  • Node type
nodeTypeDefinition

Anchor
anc-nodeTypeDefinition-property
anc-nodeTypeDefinition-property
optional

The path to an CND file which defines a JCR node type definition. The file must be a Magnolia Resource.

When the definition item is loaded, and if the node type defined in the file is not yet registered, the system will register it. (See Using the nodeType definition.)

JCR name spaces, node types and node type definitions

...