Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6324

Multifield sub-field requires extra name property when configured from YAML

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • None
    • 5.4
    • None
    • None
    • Saigon 86
    • 2

      The name property is required for multifields' sub-field in YAML (e.g. categories/field@name below), which was not with JCR and which is not obvious.

      name: categories
      class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
      label: Categories
      description: Add as many categories as desired.
      buttonSelectAddLabel: Add
      field:
        name: linkfield 
        class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
        appName: categories
        targetWorkspace: category
        buttonSelectNewLabel: Select
        buttonSelectOtherLabel: Select
        type: String
        identifierToPathConverter:
          class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
      

      When missing "name" on YAML, a key generator class throws a nullpointer ex. (if i remember correctly).

        Acceptance criteria

              ngoc.nguyenthanh Ngoc Nguyenthanh
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD

                    Estimated:
                    Original Estimate - 2.5h
                    2.5h
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2.5h
                    2.5h