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

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

    XMLWordPrintable

Details

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

    Description

      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).

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

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