[MGNLUI-6304] DOC: Add 6 UI configuration for 5 UI MultiValueChildrenNodeTransformer Created: 09/Oct/20  Updated: 05/Mar/21  Resolved: 05/Mar/21

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

Type: Improvement Priority: Neutral
Reporter: Šimon Demočko Assignee: Ashraf Khamis
Resolution: Done Votes: 0
Labels: fields, new-UI-framework, new-form
Remaining Estimate: Not Specified
Time Spent: 20m
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[X]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: MultiFields compatibility
Sprint: UI FW 23
Story Points: 2

 Description   

MultiValueChildrenNodeTransformer can be achieved in M6 UI with the following configuration:

    yourMultiName:
      $type: jcrMultiField
      itemProvider:
        $type: currentItemProvider
      entryResolution:
        class: info.magnolia.ui.editor.ByLexicographicallyIndexedChildNodes$Definition
        propertyNameDecorator: info.magnolia.ui.field.AlwaysEmptyPrefixNameDecorator
        strict: true
      orderHandler:
        class: info.magnolia.ui.editor.LexicographicallyIndexedJcrNodeOrderHandler$Definition
      field:
        name: yourMultiName # this is the name of the property the value is stored under within the multi node
        $type: textField # could be something else

Documentation update necessary under: https://docs.magnolia-cms.com/product-docs/Upgrading-to-Magnolia/Magnolia-6-UI-ports-of-5-UI-field-transformer-classes.html

multi.MultiValueChildrenNodeTransformer Deprecated, no automatic conversion.

is to be adapted to describe the necessary configuration.

Also the example section: add the above example.



 Comments   
Comment by Ashraf Khamis [ 05/Mar/21 ]

Added how to configure MultiValueChildrenNodeTransformer in Magnolia 6 UI to https://docs.magnolia-cms.com/product-docs/Upgrading-to-Magnolia/Magnolia-6-UI-ports-of-5-UI-field-transformer-classes.html and tweaked some of the description to more clearly reflect the level at which each property is configured. Added the missing propertyNameDecorator property to https://docs.magnolia-cms.com/product-docs/Templating/Dialog-definition/Field-definition/List-of-fields/Switchable-field.html.

Reviewed by Šimon.

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