Magnolia 5.3 reached end of life on June 30, 2017. This branch is no longer supported, see End-of-life policy.

Page tree
Skip to end of metadata
Go to start of metadata

To add a field to your form, configure the class property and set its value to the field definition class name. This is the minimum configuration. All fields have common properties and field-specific properties you can also set.

Example

Here is an example of a text field:

The class property is set to info.magnolia.ui.form.field.definition.TextFieldDefinition. The class defines what type of field is rendered, in this case a text box. In addition to the class, all fields support the common properties for define things such as labels and descriptions. The text field also has its own properties.

Node nameValue

 title       

 

 class

info.magnolia.ui.form.field.definition.TextFieldDefinition

 description

dialogs.pages.article.stkArticleHeader.tabMain.title.description

 i18n

true

 label

dialogs.pages.article.stkArticleHeader.tabMain.title.label

 required

true

 type

String

You can find the complete field configuration in Configuration > /modules/standard-templating-kit/dialogs/pages/article/stkArticleIntro/form/tabs/tabMain/fields/title.