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.
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.
Maven is the easiest way to install the module. Add the following to your bundle:
<dependency> <groupId>info.magnolia.types</groupId> <artifactId>magnolia-content-types</artifactId> <version>1.1.1</version> </dependency>
Pre-built JARs are also available for download. See Installing a module for help.
magnolia-content-types module does not require any configuration. However, it is responsible for detection and registration of the following items:
- Content type definitions
- XML file based JCR node type definition. See also Defining JCR node types and workspaces.
Follow the Content Types tutorial to learn how to use Magnolia content types, create content type definitions and corresponding apps.