Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hide block

Example side-by-side configurations

Switchable in 5 UISwitchable in 6 UI
Code Block
- name: tabSwitch
      fields:
        - name: message
          fieldType: switchable
          label: Message
          options:
            - name: plainText
              value: plainText
            - name: richText
              value: richText
          fields:
            - name: plainText
              fieldType: text
            - name: richText
              fieldType: richText
Code Block
  properties:
    message:
      $type: switchableField
      field:
        $type: radioButtonGroupField
        datasource:
          $type: optionListDatasource
          options:
            - name: plain
              value: plain
            - name: rich
              value: rich
      itemProvider:
        $type: currentItemProvider
      propertyNameDecorator: info.magnolia.ui.field.PrefixNameDecorator
      forms:
        - name: plain
          properties:
            plainText:
              $type: textField
        - name: rich
          properties:
            richText:
              $type: richTextField

Other 5 UI transformer classes

info.magnolia.ui.form.field.transformer.*In 6 UI
composite.DelegatingCompositeFieldTransformerUse info.magnolia.ui.editor.CurrentItemProvider.
composite.NoOpCompositeTransformerNot needed.
multi.DelegatingMultiValueFieldTransformerUse info.magnolia.ui.editor.CurrentItemProvider.
multi.DelegatingMultiValueSubnodeTransformer

Use info.magnolia.ui.editor.JcrChildNodeProvider and set:

  • supportI18N to false
  • propertyNameDecorator to info.magnolia.ui.field.AlwaysEmptyPrefixNameDecorator
multi.MultiValueChildNodeTransformerDeprecated, no automatic conversion.
multi.MultiValueChildrenNodeTransformerDeprecated, no automatic conversion.
multi.MultiValueJSONTransformerDeprecated, no automatic conversion.
multi.MultiValueSubChildrenNodePropertiesTransformer

Use info.magnolia.ui.editor.JcrChildNodeProvider and set:

  • supportI18N to false
  • entryResolution to the now deprecated deprecated info.magnolia.ui.editor.ByLexicographicallyIndexedChildNodes.DefinitionByLexicographicallyIndexedChildNodes$Definition
multi.MultiValueSubChildrenNodeTransformerDeprecated, no automatic conversion.

...