Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2013

MultivalueEditorWithSuggestion, extended multivalueeditor widget with suggestion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.10
    • 2.1.11, 2.2
    • Blocks: Ajax, Blocks: Forms
    • None
    • Low
    • 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.

      Attachments

        Activity

          People

            antonio Antonio Gallardo Rivera
            lruiz Larry Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: