Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6332

DOC: Better explanation of itemProvider on multi field page

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Neutral Neutral
    • None
    • 6.2.4
    • None

      Hi.
      The current multi field page is confusing and the lack of detail about item providers can cause errors in version prior to 6.2.4

      The three different fields treat item providers differently across versions and it is difficult to explain to users. I would like to propose that an entry is added to the properties table for itemProvider, referencing common properties.

      My suggestion

      itemProvider
      Optional for some field since 6.2.4, default is
      info.magnolia.ui.editor.JcrPropertyProvider for JcrMultiValueFieldDefinition
      info.magnolia.ui.editor.JcrChildNodeProviderDefinition for jcrMultiField
      None for jsonMultiField

      Prior to 6.2.4, jcrMultiField has no default.
      See also: Common properties (linked)

      I appreciate the desire to document only the latest patch release. ie
      https://magnolia-cms.slack.com/archives/CDF8GN6ER/p1600265852074500

      However, the example jcrMultiField that exists since MGNLUI-6316 has no itemProvider and in Magnolia 6.2.3 triggers a null pointer exception with very little explanation.

        Acceptance criteria

              akhamis Ashraf Khamis
              chris.jennings Chris Jennings
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR