[MGNLUI-3197] Multi link field: support for multi-selection Created: 09/Oct/14  Updated: 26/Aug/21  Resolved: 23/Aug/21

Status: Closed
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 6.2
Fix Version/s: 6.2.12

Type: Improvement Priority: Major
Reporter: Christopher Zimmermann Assignee: Roman Kovařík
Resolution: Done Votes: 3
Labels: choosedialog, ux-improvement-selected
Remaining Estimate: Not Specified
Time Spent: 7h 52m
Original Estimate: Not Specified

Attachments: PNG File token-layout.png    
Issue Links:
Relates
relates to MGNLUI-2729 Choose dialog should not allow select... Closed
relates to ECOMMERCE-337 [DRAFT] Product Chooser. Implement pr... Open
causality
dependency
duplicate
relation
is related to MGNLUI-6800 Magnolia randomly de-selects selected... Closed
is related to MGNLUI-3618 Add support for multiple items select... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: formLevelValidation
Sprint: UI FW 34, UI FW 35
Story Points: 8

 Description   

As an editor I want to select multiple items in one go so that i don’t need to re-open the chooser dialog for every single item.

Acceptance criteria

  • the chooser dialog (which opens upon click on „select button“ of a multivalue field) allows users to select one or multiple items
    • the preview shows the last selected item
  • if the user chooses multiple items they all show up as values in the list after clicking „choose“
  • this behaviour applies to all sorts of content types within the chooser


 Comments   
Comment by Antti Hietala [ 28/Jan/19 ]

We use the tag/token layout in Find Bar to display multiple selected items. It's quite a versatile approach. It works for different kinds of items (workspaces, tags, authors, dates) and is already paired with a combobox (dropdown) and a calendar field. Consider using this existing pattern to improve multiselect in other use cases.

Comment by Annick Boehler [ 23/Apr/21 ]

Hi,

may I ask if there is already an update on that improvement?

Thanks 

Comment by Roman Kovařík [ 23/Apr/21 ]

Hello,

No update yet because of the amount of other feature request.
Could you share your use case?
Would filtering via link field text input do the trick as well? e.g. (config for Magnolia 6.2.7)

        multi:
          $type: jcrMultiValueField
          field:
            $type: damLinkField
            showOptions: true
            textInputAllowed: true

Hope that helps.

Comment by Roman Kovařík [ 29/Jul/21 ]

Linking MGNLUI-6800 as fixing this makes misclicking and unselecting items much less possible.

Comment by Roman Kovařík [ 26/Aug/21 ]

For release notes:

New multi field with multi-selection chooser

info.magnolia.ui.field.JcrMultiLinkFieldDefinition allows you to select multiple values of a single type in a chooser dialog to be stored as an array in a single JCR property (jcrMultiLinkField).

See https://docs.magnolia-cms.com/product-docs/6.2/Templating/Dialog-definition/Field-definition/List-of-fields/Multi-field.html for more information.

Generated at Mon Feb 12 09:04:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.