Hi Neos-Experts,
I was wondering if it is Possible to show/hide groups of Properties depending on the Value selected via Selectbox. The Dropdown Property is located in the Parent NodeType. I made Constraints to the Contentcollection only allowing a “child NodeType” (basically I want to buld a Table).
So the Main NodeType has the Skeleton of a Table and the TableItem would be the Rows…
the Property in the Parent NodeType Table has a dropdown which should state how many Columns a Row should have.
there could be up to 5 Columns MAX and the idea behind this was to just show / hide the TableItem Groups (since I want to group the column Properties in my Row NodeType as Column 1 - 5… ) so the Editor fills it up as Configured earlier in the Parent.
here is the YAML so Far:
'neos.test:table':
superTypes:
'Neos.Neos:Content': true
ui:
label: 'Table'
icon: 'icon-table'
group: 'general'
inlineEditable: TRUE
inspector:
groups:
tablesettings:
label: 'Table Einstellungen'
childNodes:
tablecollection:
type: 'Neos.Neos:ContentCollection'
constraints:
nodeTypes:
'*': False
'neos.test:TableItem': True
properties:
columnCount:
type: integer
ui:
label: 'Number of Columns'
inspector:
group: tablesettings
editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
values:
1:
label: '1'
2:
label: '2'
3:
label: '3'
4:
label: '4'
5:
label: '5'
'neos.test:TableItem':
superTypes:
'Neos.Neos:Content': true
ui:
label: 'Table-Row'
icon: 'icon-'
inlineEditable: TRUE
inspector:
groups:
tablerowsettings:
label: 'Table-Row Settings'
tablecolumnsettings1:
label: 'Table-Column1 Settings'
tablecolumnsettings2:
label: 'Table-Column2 Settings'
tablecolumnsettings3:
label: 'Table-Column3 Settings'
tablecolumnsettings4:
label: 'Table-Column4 Settings'
tablecolumnsettings5:
label: 'Table-Column5 Settings'
properties:
headerRow:
type: boolean
defaultValue: false
ui:
label: 'Header Row?'
inspector:
group: 'tablerowsettings'
col1:
type: string
ui:
label: 'Column1 Content'
inspector:
group: 'tablecolumnsettings1'
col2:
type: string
ui:
label: 'Column2 Content'
inspector:
group: 'tablecolumnsettings2'
col3:
type: string
ui:
label: 'Column3 Content'
inspector:
group: 'tablecolumnsettings3'
col4:
type: string
ui:
label: 'Column4 Content'
inspector:
group: 'tablecolumnsettings4'
col5:
type: string
ui:
label: 'Column5 Content'
inspector:
group: 'tablecolumnsettings5'
so I was looking at the Dynamic Client-side Configuration Processing but I am not sure how I should do this.
thanks for your Answers in advance.
Cheers,
Patrick