Skip to content

Commit

Permalink
Merge pull request #25 from rolandschuetz/section-id-validation
Browse files Browse the repository at this point in the history
TASK: Added validation and a better description
  • Loading branch information
kdambekalns authored Apr 22, 2022
2 parents c4bb97c + c3fbcb3 commit d8dc442
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Configuration/NodeTypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@
group: anchor
help:
message: i18n
validation:
'Neos.Neos/Validation/StringLengthValidator':
minimum: 1
maximum: 255
'Neos.Neos/Validation/RegularExpressionValidator':
regularExpression: '/^[a-z][a-z0-9\-]*$/i'
4 changes: 2 additions & 2 deletions Resources/Private/Translations/de/NodeTypes/AnchorMixin.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<target>Abschnitts-ID</target>
</trans-unit>
<trans-unit id="properties.sectionId.ui.help.message" xml:space="preserve">
<source>Fill in the section id, save and click the button below to copy the link to this node. You can paste it like any other link in the text editor or in inspector fields.</source>
<target>Abschnitts-ID eingeben, speichern und den unter dem Feld erscheinenden Button klicken um den Link zu diesem Element zu kopieren. Dieser kann wie jeder andere Link im Texteditor oder in Feldern des Inspektors eingefügt werden.</target>
<source>Enter a section ID of the type short-text-without-special-characters. After you click Save, a button for copying the link appears below it. This link can be pasted in the text editor or in fields of the Inspector and will lead directly to the section.</source>
<target>Gib eine Abschnitts-ID in der Art kurzer-text-ohne-sonderzeichen ein. Nachdem du auf Speichern klickst, erscheint darunter ein Button zum Kopieren des Links. Dieser Link im Texteditor oder in Feldern des Inspektors eingefügt werden und führt direkt zum Abschnitt.</target>
</trans-unit>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<source>Section id</source>
</trans-unit>
<trans-unit id="properties.sectionId.ui.help.message" xml:space="preserve">
<source>Fill in the section id, save and click the button below to copy the link to this node. You can paste it like any other link in the text editor or in inspector fields.</source>
<source>Enter a section ID of the type short-text-without-special-characters. After you click Save, a button for copying the link appears below it. This link can be pasted in the text editor or in fields of the Inspector and will lead directly to the section.</source>
</trans-unit>
</body>
</file>
Expand Down

0 comments on commit d8dc442

Please sign in to comment.