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

Validation for title of new node #5

Open
lorenzulrich opened this issue Jan 25, 2018 · 1 comment
Open

Validation for title of new node #5

lorenzulrich opened this issue Jan 25, 2018 · 1 comment

Comments

@lorenzulrich
Copy link
Contributor

In most cases, it doesn't make sense to create a Node with an empty title. Therefore it would make sense to add an optional NotEmpty validator.

I tried adding one but found out that it's not that simple. Validation in the backend is based on node property configuration, and the title field is not a node property, but just a TextInput.

@lorenzulrich
Copy link
Contributor Author

Just some random thoughts about it:

  • It could be a good idea to actually allow configuring more than one field to be created, e.g. not only title, but also date, and therefore allow the same options as in the node creation dialog.
  • If so, it would maybe make sense to just present a button "Create node" in the inspector which triggers the node creation dialog (from NodeTemplates) for creating a new node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant