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

Reorderable MultiValueField

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.4.3
    • 5.3.7
    • forms
    • Yes
    • Basel 10
    • 8

    Description

      MultiValueField should allow reordering its entries, to avoid having to mass-delete/re-add entries when order matters. This is considered a usability flaw, no need to make it configurable.


      Original description

      Use Case:

      For example, if you have a full editable main navigation with many links you either can use an area with single link components or you can use the MultiField. Both isn't optimal for this case, because:
      1) Case Components: you can switch components, but it is annoying always creating a new component.
      2) MultiField: You can easily add many Links, but if you want another order, you have to switch the entries manually. What is also annoying. Furthermore you are not able to limit the number of entries..

      The SortableMultiField combines both types and allows to order the field, so the authors can easily switch the order of the entries. The SortableMultiField can also be used with CompositeField etc.

      I added two new properties (sortable, maxComponents) into the definition so you can decide if you want to have the MultiField sortable or not and you also can limit the number of entries in the MultiField.

      I included the necessary Java files and some small styling.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ejervidalo Espen Jervidalo
                stefan.jahn Stefan Jahn
                Votes:
                6 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1h
                      1h