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, 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.

...