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

JcrMultiFieldDefinition should place the nodes it creates in a container node

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Major
    • None
    • 6.2, 6.2.1, 6.2.2, 6.2.3
    • dialogs
    • None

    Description

      The new JcrMultiFieldDefinition adds the nodes it creates directly to the parent node, named after the jcrMultiField with a number added, e.g. "product0", "product1" etc. This leads to such a structure:

      As you can imagine, a structure like this does not all you to loop over the products. In the Freemarker templates you can cheat your way around this by getting all children and looping over them, filtering out all that do not match a name pattern. However in the SPA you don't have the component object available so you cannot loop over any properties.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              will Will Scheidegger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD