adapted from https://documentation.magnolia-cms.com/display/DOCS56/Developing+and+rendering+custom+content+blocks
Create the module structure we will need:
Code Block |
---|
cd my-light-modules |
...
mkdir -p block-examples/blocks mkdir -p block-examples/templates/blocks |
dfdfddAdd the block definition:
Code Block | ||||
---|---|---|---|---|
| ||||
class: info.magnolia.editor.block.stock.FieldSetBlockDefinition templateId: block-examples:blocks/quote fields: quotation: class: info.magnolia.ui.form.field.definition.TextFieldDefinition rows: 3 citedPerson: class: info.magnolia.ui.form.field.definition.TextFieldDefinition |
Add the template definition:
Code Block | ||||
---|---|---|---|---|
| ||||
templateScript: /block-examples/templates/blocks/quote.ftl
renderType: freemarker |
YZ