...
A model definition, a subitem of the Magnolia Content type definition, defines the model of a content type.
Include Page |
---|
| DOCS60:_content types developer preview short infoDOCS60: |
---|
| _content types developer preview short info |
---|
|
...
<property> |
---|
name
| required The name of the property. The name is used for storing values in the underlying data source. |
type
| optional, default is String Possible values: - JCR property types
String Boolean Decimal Double Long Date
- The name of a Submodel.
You can only reference submodels defined in the same content type. - The name of Content type making a reference to another content item.
If a submodel and a content type have the same name, the submodel takes precedence over the content type.
|
required
| optional, default is false Makes the property mandatory. |
i18n
| optional, default is false Enables i18n support for the property. |
multiple
| optional, default is false The true setting allows storing multiple values of the property. |
Hide block |
---|
Not yet implemented: <property> |
---|
label
| optional A label which is used in the UIs, fo example in a content app. The property is annotated with Javadoc resource link |
---|
className | info.magnolia.i18nsystem.I18nText |
---|
renderType | asynchronous |
---|
|
, and therefore it can be localized. | defaultValue
| optional Defines the default value for the property. It is applied when creating instances. | readOnly
| optional, default is false Determines whether the property can be changed. | |
...
For
Javadoc resource link |
---|
className | info.magnolia.types.model.ModelDefinition |
---|
renderType | asynchronous |
---|
|
, the
Javadoc resource link |
---|
className | info.magnolia.types.model.jcr.ConfiguredJcrModelDefinition |
---|
renderType | asynchronous |
---|
|
is set as the default implementation class via type mapping on the
XML-based module descriptor of the
magnolia-content-types
module.
...