Cocoon
  1. Cocoon
  2. COCOON-2013

MultivalueEditorWithSuggestion, extended multivalueeditor widget with suggestion

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.10
    • Fix Version/s: 2.1.11, 2.2
    • Component/s: Blocks: Ajax, Blocks: Forms
    • Labels:
      None
    • Urgency:
      Low
    • Other Info:
      Patch available

      Description

      Enhance multivalueeditor with suggestion
      in definition:
      <fd:multivaluefield id="contacts">
           <fd:label>Contacts</fd:label>
      <fd:hint>Select the contacts</fd:hint>
           <fd:datatype base="long" />
      </fd:multivaluefield>
      in template:
            <ft:widget id="contacts">
      <fi:styling type="MultiValueEditorWithSuggestion" dataUrl="_cocoon/forms/suggest/contacts"/>
            </ft:widget>

      then it need a matcher that return data in json format for this url "_cocoon/forms/suggest/contacts" default dataUrl got it from "_cocoon/forms/suggest/" + widgetId, at least that one is specified.

      the patches include widget implementation code and samples.

        Activity

        Hide
        Larry Ruiz added a comment -
        implementation
        Show
        Larry Ruiz added a comment - implementation
        Hide
        Larry Ruiz added a comment -
        sample
        Show
        Larry Ruiz added a comment - sample
        Hide
        Antonio Gallardo added a comment -
        Great work! It is an amazing widget! However, I found a small issue, the suggestion list shows up "Donald Ball" only if the user press the uppper case "D" and not if the user press a lower case "d". wdyt?
        Show
        Antonio Gallardo added a comment - Great work! It is an amazing widget! However, I found a small issue, the suggestion list shows up "Donald Ball" only if the user press the uppper case "D" and not if the user press a lower case "d". wdyt?
        Hide
        Antonio Gallardo added a comment -
        The small issue found in the code is a sample issue. It is fixed in the sample.
        Show
        Antonio Gallardo added a comment - The small issue found in the code is a sample issue. It is fixed in the sample.
        Hide
        Antonio Gallardo added a comment -
        Patch applied with minor changes. Please cross check and reopen the issue if needed. Many thanks for the patch.
        Show
        Antonio Gallardo added a comment - Patch applied with minor changes. Please cross check and reopen the issue if needed. Many thanks for the patch.

          People

          • Assignee:
            Antonio Gallardo
            Reporter:
            Larry Ruiz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development