-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
BUG: Hidden Property of node type configuration does only work in the inspector but not in the node creation dialog #3483
Comments
This functionality has been implemented in #3344 afaik. What are your opinions on this? @markusguenther @mhsdesign @JamesAlias @Sebobo |
I wasn't sure in the first moment if this was a bugfix or a new feature. In the first moment, I assumed a feature. |
we actually have following problems: the preprocessor that creates the creationDialog entries based on but even if it would do so, the creationDialog wouldnt know what to do with it yet: neos-ui/packages/neos-ts-interfaces/src/index.ts Lines 189 to 207 in 2597ffe
in the inspector we filter out all items based on if neos-ui/packages/neos-ui/src/Containers/RightSideBar/Inspector/PropertyGroup/index.js Line 92 in 8d5e7c9
The mentioned pr #3304 is only relevant in that we will get ClientEval support for the hidden property once we introduce it in the creationDialog out of the box. I think since this feature/bug was only recently introduced, it was previously not useful to handle the hidden option as its not as useful as with ClientEval. so while currently properties:
hiddenProperty:
ui:
showInCreationDialog: true
inspector:
hidden: true
editorOptions:
disabled: true
any: thing
editor: FooBar
position: start is expanded to ui:
creationDialog:
elements:
hiddenProperty:
type: string
ui:
editor: FooBar
editorOptions:
disabled: true
any: thing
position: start we can just add support here for ui:
creationDialog:
elements:
hiddenProperty:
type: string
ui:
hidden: true or one level higher? (i think we were just inconsistent with moving position up, so i rather say no) ui:
creationDialog:
elements:
hiddenProperty:
type: string
hidden: true
ui: { } |
I will close this. Since #3507 and neos/neos-development-collection#4297 have been merged. |
Description
In the inspector you can hide properties with the ui.inspector.hidden property, e.g.
This does not show the property in the Inspector, but it still appears in the creation dialog. This might be useful for setting properties in the creation process but not showing them afterwards in the inspector, but for me this is not the expected behaviour because other inspector options like
editor
andeditorOptions.dataSourceIdentifier
for example also work in the node creation dialog.We use the hidden property in a few cases to hide or show properties with ClientEval based on other properties as described in https://docs.neos.io/guide/manual/content-repository/nodetype-properties and the problem is, as soon as we add
showInCreationDialog: true
they are shown in the creation dialog weather the other property is set or not.I would like to start a discussion, if this is actually a bug and should be fixed or if this is the intended behaviour and there should be another option to dynamically hide and show fields in the creation dialog based on ClientEval statements.
Steps to Reproduce
Create a nodetype with a hidden property (possibly based on another property with ClientEval) and
showInCreationDialog: true
e.g. sth. like:
Expected behavior
The secondProperty is hidden in both the inspector and the node creation dialog as long as the firstProperty is empty
Actual behavior
The second property is shown in the node creation dialog even if the firstProperty is not set yet
Affected Versions
Tested with:
Neos: 8.1.2
UI: 8.1.9
The text was updated successfully, but these errors were encountered: