[MAGNOLIA-8291] DOC: Defining multi-value property for component autogeneration Created: 28/Jan/22 Updated: 20/Jul/22 Resolved: 25/Feb/22 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 6.2.16 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Ashraf Khamis | Assignee: | Adam Siska |
| Resolution: | Done | Votes: | 0 |
| Labels: | component, multi-value, nucleus | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoR: |
Empty
|
||||||||
| Epic Link: | Nucleus Quality Maintenance | ||||||||
| Sprint: | Nucleus 4 | ||||||||
| Story Points: | 3 | ||||||||
| Team: | |||||||||
| Description |
|
Component autogeneration now supports multi-value properties. To define a multi-value property, set its class to java.util.ArrayList. This will transform the property into ArrayList. For example:
autoGeneration:
content:
form:
nodeType: mgnl:component
templateId: form:components/formNumber
title: test
controlName: test
validation:
class: java.util.ArrayList
0: empty
1: email
2: number
Page to update: https://docs.magnolia-cms.com/product-docs/6.2/Templating/Template-definition/Area-definition/Component-autogeneration.html |