The 5.7 branch of Magnolia reached End-of-Life on December 31, 2023, as specified in our End-of-life policy. This means the 5.7 branch is no longer maintained or supported. Please upgrade to the latest Magnolia release. By upgrading, you will get the latest release of Magnolia featuring significant improvements to the author and developer experience. For a successful upgrade, please consult our Magnolia 6.2 documentation. If you need help, please contact info@magnolia-cms.com.

The Content Types module allows defining Magnolia content types for instance in a single YAML file of a light module. By defining a custom JCR node type, workspace and namespace in a single YAML file of a light module there's no need to deploy a WAR file or restart a Magnolia instance. Now with just a few lines of YAML code referring to the content type definition you can quickly create a content app descriptor managing the content items defined.

(warning) 5.7.2+  This module requires Magnolia 5.7.2 or higher versions.

For complex node definitions the Content Types module also supports XML file based JCR node type definitions served as resource files from a light module.

The Content Types module currently is not  part of the preconfigured Magnolia bundles and webapps of the 5.7.x series, you have to add it yourself.


Installing

Maven is the easiest way to install the module. Add the following to your bundle. The parent POM of your webapp project should set the latest version of the module automatically. Should you need to use a specific module version, you can define it using the <version/> in the dependency.

<dependency>
  <groupId>info.magnolia.types</groupId>
  <artifactId>magnolia-content-types</artifactId>
</dependency>

Configuration

The magnolia-content-types module does not require any configuration. However, it is responsible for detection and registration of the following items: