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

WIP: Schnappsidee: Provide alternative for client eval's conditional logic and hidden fields #3687

Open
mhsdesign opened this issue Jan 13, 2024 · 1 comment

Comments

@mhsdesign
Copy link
Member

This is just a wip thought and will be better formulated and discussed at a later point.

Current state:

Proposal:

instead of conditionally selecting an option, we declare union types and a higher level editor in the neos ui will give a selection to either insert the one or the other:

properties:
  myConditionalType:
    type: string|\SomeDto

So when selecting "string" (or rather a human readable label) a string editor appears and when selecting "SomeDto" or the like another editor appears.

To correctly model complex things inspector gadget should be used - and might even need to be brought to the core ... maybe even union types are not really necessary, but inspector gadget would already solve all problems though the use of well structured custom dtos?

@Sebobo
Copy link
Member

Sebobo commented Jan 13, 2024

DTOs don't sound a like an easy and accessible solution to me for integrators and for most simple cases. Also things evolve over time.

But if someone wants validation + optional fields, they have to provide one, as it sounds a like a bit more sophisticated use-case. We can also make the ui detect if something is hidden+hasValidation and show a hint to the editor.

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

2 participants