Tune the presentation of the detail subapp form (MGNLUI-4498)

[MGNLUI-4500] Detail subapp's field generation from data model of content type Created: 04/Jul/18  Updated: 25/Jul/18  Resolved: 12/Jul/18

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

Type: Sub-task Priority: Neutral
Reporter: Hieu Nguyen Duc Assignee: Ngoc Nguyenthanh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 6d
Original Estimate: 3d

Issue Links:
dependency
depends upon MGNLUI-4496 Infer field definition type from 'typ... Closed
Template:
Date of First Response:
Sprint: Saigon 149

 Description   


 Comments   
Comment by Ngoc Nguyenthanh [ 16/Jul/18 ]

An content type example with model definition

datasource:
  workspace: vn
  namespaces:
    vn: https://www.magnolia-cms.com/jcr/namespace/content-type/vn
  nodeTypes:
    - vn:person
    - vn:address
  autoCreate: true

model:
  properties:
    - name: jcrName
    - name: fullName
    - name: birthday
      type: Date
    - name: single
      type: Boolean
    - name: friendCount
      type: Long
    - name: billingAddress
      type: address
    - name: shippingAddress
      type: address
  • Only simple fields are supported ATM: Numeric fields (text field with appropriate type: Long, Decimal), Date to the Date field, Boolean to the Checkbox field. Otherwise a text field with default configuration will be generated.

 

Comment by Dai Ha [ 16/Jul/18 ]

Verified by generating simple app, complex app and decoration.

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