Versions Compared

Key

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

...

In Magnolia we define custom node types that define Magnolia's custom content model. The JCR in turn enforces the constraints of that model at the repository level. If you need to reference JCR node types in your code, Jackrabbit's JcrConstants is useful. We provide constants also for Magnolia's custom node types but also convenience methods. For example, to update the last modification date of a node, use the NodeTypes.LastModified.update(node) convenience method. Magnolia node types are registered by the 

Javadoc
rangeHigherVersion5.7
className0info.magnolia.jcr.util.NodeTypes
renderTypeasynchronous
 Java class.

Table of Contents

...

Notation

Description

mgnl:area

Area

mgnl:component

Component

mgnl:content

Activatable and versionable content objects such as pages.

mgnl:contentNode

Activatable but not versionable content objects which can be rendered independently. For example, blocks or objects below page level such as such as area or component.

mgnl:folder

Folder

mgnl:group

Group

mgnl:metaData

Metadata

mgnl:nodeData

Property

mgnl:page

Page

mgnl:reserve

Reserved for system use.

mgnl:resource

Resource
mgnl:role Role

mgnl:user

User

...

Notation

Properties

Description

mgnl:deleted

mgnl:deleted (DATE)

mgnl:deletedBy (STRING)

Date the node was deleted, the user who deleted it and the deletion comment.

mgnl:lastModified

mgnl:lastModified (DATE)

mgnl:lastModifiedBy (STRING)

Date the node was last modified and the user who modified it.
mgnl:activatable

mgnl:lastActivated (DATE)

mgnl:lastActivatedBy (STRING)

mgnl:activationStatus (STRING)

mgnl:lastActivatedVersion (STRING)

Date the node was activated, the user who activated it and , its current activation status and – since Magnolia 5.6.1 the version in which the node was activated.


Note that on the public instance, lastActionDate always contains the date of the previous activation, not the current one. This is because the lastActionDate is updated only after the content is sent to the public instance.

mgnl:created

mgnl:created (DATE)

mgnl:createdBy (STRING)

Date the node was created and the user who created it.
mgnl:renderablemgnl:template (STRING)Associates a template with the node for rendering.
mgnl:versionablemgnl:comment (STRING)Allows the user to leave a comment on the version.

...

The following sections list node types that are provided by individual Magnolia modules. You can define several node types per module if you so require. Almost all the node types added inherit from mgnl:contentNode or mgnl:content.

Categorization module

Defined in  magnolia-category-nodetypes.xml  .

Notation

Description

mgnl:categoryAn object containing a category. Inherits from mgnl:content .

Content Editor module

Defined in  content-editor-nodetypes.xml  .

Notation

Description

mgnl:blockContent editor block objects containing text, image or similar content. Inherits from mgnl:contentNode and are activatable but not versionable.
mgnl:compositionCompositions are activatable and versionable as a whole and contain ordered subnodes of type mgnl:block.
mgnl:collectionCollection of unordered content editor compositions.

Content Tags module

Defined in  content-tags-nodetypes.xml  .

Notation

Description

mgnl:tagAn object containing a content tag. Inherits from mgnl:content .

Marketing Tags module

Defined in  magnolia-tags-nodetypes.xml  .

Notation

Description

mgnl:marketing-tagAn object containing a marketing tag. Inherits from mgnl:content .

Password manager module

Defined in  magnolia-keystore-nodetypes.xml .

Notation

Description

mgnl:passwordAn object containing a password. Inherits from mgnl:content .
Hide block

Personalization module

Notation

Description

mgnl:componentVariantA personalized variant of a component node.