This documentation is still in progress. We are working hard to update all our screenshots to the new Magnolia 6 style. Please bear with us.
With Magnolia 5.5.6, the placeholder text field has been deprecated in favor of the "universal"
placeholder property, see Common field properties.
The placeholder text field is provided by the Content Editor module, which is an EE Pro module.
The PlaceholderTextFieldDefinition is similar to the text field and provides an additional property named
placeholder. The property's value, which is i18nable, will displayed in the field before any text has been entered in the field by the user.
It can also be used in a dialog for a component.
You do not have to provide the
label properties in the definition. Instead provide their translations in a message bundle.
See Referencing fields for further information.
You can use text field properties and the
placeholder property in the field's definition:
|The name of field.|
The placeholder text to be displayed in the empty field.
The field is optional, but you should provide a translation or a hard-coded label, otherwise the empty field will display its auto-generated 18n key instead.
Expand to see the placeholder field displaying its i18n key