Page History
...
align | right |
---|---|
class | menu |
Use the Magnolia Content type definition to specify a content type.
Include Page | |||
---|---|---|---|
DOCS60:_content types developer preview short info | |||
Include Page | |||
|
...
The definition item can be supplied via any Magnolia Resource origin. You can create them in a light module, in a Magnolia Maven module or in the JCR configuration
workspace (see Location of the content type definitions). New content type definition items are detected by the magnolia-content-types
module and registered at the
Javadoc resource link | ||||
---|---|---|---|---|
|
...
Example configuration:
Code Pro | profile | bitbucket-cmeier-repo||||||
---|---|---|---|---|---|---|---|
| |||||||
datasource: workspace: tourguides namespaces: mt: https:// | gitwww.magnolia- | cmstravel.com/ | usersjcr/ | cmeier/repos/content-type-examples/raw/contentTypes/tourGuide.yaml?at=master1.0/mt
autoCreate: true
model:
nodeType: mt:tourGuide
properties:
- name: birthday
type: Date
- name: gender
- name: shortBio |
Here we only focus on the top level properties of the content type definition.
...
The definition item can be supplied via any Magnolia Resource origin. You can create them in a light module, in a Magnolia Maven module or in the JCR configuration
workspace.
...