[MGNLUI-4521] Complex fields - composite groups of fields Created: 16/Apr/18  Updated: 29/Aug/18  Resolved: 03/Aug/18

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0

Type: Story Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Hieu Nguyen Duc
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 8.75d
Original Estimate: 4d

Attachments: PNG File appDefinition.png     PNG File data.png     PNG File form.png    
Issue Links:
Cloners
is cloned by MGNLUI-4535 Complex fields - repeatable fields an... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Content types Developer Preview
Sprint: Saigon 149, Saigon 150
Story Points: 8

 Description   

User story:

As a Business Analyst / Developer, I can define a group of fields.

Acceptance criteria:

  • In the definition a developer can define a group of fields.
  • In the editing UI an author can fill in the fields in that group.


 Comments   
Comment by Christopher Zimmermann [ 28/Aug/18 ]

Please describe how to make a group, and/or provide an example - or link to a document.

Comment by Hieu Nguyen Duc [ 29/Aug/18 ]

This is how the implementation meets the acceptance critiera.

Group of fields

Given this content type

datasource:
  workspace: tourists
model:
  properties:
    - name: address
      type: address
  subModels:
    - name: address
      properties:
        - name: street
        - name: district

The generated app will show

App definition shows a CompositeField which contains two text fields

Data are stored as

Reference:

Documentation is ongoing: https://documentation.magnolia-cms.com/display/DOCS57/Model+definition

Generated at Mon Feb 12 09:17:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.