The 5.7 branch of Magnolia reached End-of-Life on December 31, 2023, as specified in our End-of-life policy. This means the 5.7 branch is no longer maintained or supported. Please upgrade to the latest Magnolia release. By upgrading, you will get the latest release of Magnolia featuring significant improvements to the author and developer experience. For a successful upgrade, please consult our Magnolia 6.2 documentation. If you need help, please contact info@magnolia-cms.com.

Reference a field by its name

Instead of defining the type of a field using the class property, you can reference the type using the fieldType property, which takes the field's short and easy-to-remember alias name as the value.

For example, use fieldType: text instead of class: info.magnolia.ui.form.field.definition.TextFieldDefinition.

To view the field alias names, look in the Definitions app. See also Referencing fields.

  • No labels