Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Added validation and a better description #25

Merged
merged 2 commits into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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