diff --git a/Configuration/NodeTypes.FormElement.Mixins.yaml b/Configuration/NodeTypes.FormElement.Mixins.yaml index 4a68e3e..3ae3aba 100644 --- a/Configuration/NodeTypes.FormElement.Mixins.yaml +++ b/Configuration/NodeTypes.FormElement.Mixins.yaml @@ -86,4 +86,14 @@ 'Neos.Form.Builder:SectionMixin': childNodes: 'elements': - type: 'Neos.Form.Builder:ElementCollection' \ No newline at end of file + type: 'Neos.Form.Builder:ElementCollection' + +'Neos.Form.Builder:MaxlengthMixin': + properties: + 'maxlength': + type: integer + ui: + label: i18n + reloadIfChanged: TRUE + inspector: + group: 'formElement' \ No newline at end of file diff --git a/Configuration/NodeTypes.FormElements.MultiLineText.yaml b/Configuration/NodeTypes.FormElements.MultiLineText.yaml index fe71818..375dc02 100644 --- a/Configuration/NodeTypes.FormElements.MultiLineText.yaml +++ b/Configuration/NodeTypes.FormElements.MultiLineText.yaml @@ -2,6 +2,7 @@ superTypes: 'Neos.Form.Builder:FormElement': TRUE 'Neos.Form.Builder:PlaceholderMixin': TRUE + 'Neos.Form.Builder:MaxlengthMixin': TRUE ui: label: 'Multi-line text' icon: 'icon-pencil-square-o' diff --git a/Configuration/NodeTypes.FormElements.SingleLineText.yaml b/Configuration/NodeTypes.FormElements.SingleLineText.yaml index f639987..c098be9 100644 --- a/Configuration/NodeTypes.FormElements.SingleLineText.yaml +++ b/Configuration/NodeTypes.FormElements.SingleLineText.yaml @@ -3,6 +3,7 @@ 'Neos.Form.Builder:FormElement': TRUE 'Neos.Form.Builder:TextValidatorsMixin': TRUE 'Neos.Form.Builder:PlaceholderMixin': TRUE + 'Neos.Form.Builder:MaxlengthMixin': TRUE ui: label: 'Single-line text' icon: 'icon-pencil-square-o' diff --git a/Resources/Private/Translations/de/NodeTypes/MaxlengthMixin.xlf b/Resources/Private/Translations/de/NodeTypes/MaxlengthMixin.xlf new file mode 100644 index 0000000..6b730fa --- /dev/null +++ b/Resources/Private/Translations/de/NodeTypes/MaxlengthMixin.xlf @@ -0,0 +1,11 @@ + + + + + + Max length + Maximale Länge + + + + diff --git a/Resources/Private/Translations/en/NodeTypes/MaxlengthMixin.xlf b/Resources/Private/Translations/en/NodeTypes/MaxlengthMixin.xlf new file mode 100644 index 0000000..b89137a --- /dev/null +++ b/Resources/Private/Translations/en/NodeTypes/MaxlengthMixin.xlf @@ -0,0 +1,10 @@ + + + + + + Max length + + + +