Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCU-2700

...

clearboth
width343px
alignright
classmenu

This page describes definition properties and template definition properties of a block, a component-like content element provided by the Content editor module.

...

Block content is stored using the mgnl:block   node type in the JCR.  mgnl:block is  is similar to the custom node type mgnl:content, but it cannot be versioned on its own. Block content is usually grouped into block compositions (mgnl:composition ), which are versionable. 

...

Hide block
Tip

You can quickly create your own custom block using Magnolia CLI. The Magnolia CLI  create-block  command creates a block based on  FieldSetBlockDefinition  and includes many commonly used fields as a starting point.

...

Use this definition to configure the list of fields depending on your needs as explained in the properties table above. 

(warning) Do not use the field type info.magnolia.ui.form.field.definition.RichTextFieldDefinition on a FieldSetBlockDefinition, instead use the RichTextBlock (see below).

RichTextBlock

This is a block definition with a single field. Use this block when you need a rich text editor. text field and simple text formatting capabilities.

Example block definition:

...