Uploaded image for project: '{RETIRED} XWiki Enterprise'
  1. {RETIRED} XWiki Enterprise
  2. XE-864

New macro for selecting an attachment name to use in an object property

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0 M3
    • Fix Version/s: 3.0 RC1
    • Component/s: Other
    • Labels:
      None
    • Similar issues:

      Description

      Integrating http://extensions.xwiki.org/xwiki/bin/view/Extension/Attachment+Selector+Macro as a standard platform feature:

      A picker associated with XObject properties of type String, which offers a friendly UI for selecting one of the document's attachments and putting its name in the property's value

      Example usage:

      {{attachmentSelector classname="Sandbox.Demo" property="attachedDocument" filter="pdf,odt"/}}
      
      {{attachmentSelector classname="Sandbox.Demo" property="attachedImage" filter="png,jpg,gif"
      displayImage="true"/}}
      
      {{attachmentSelector classname="XWiki.XWikiUsers" property="avatar" savemode="direct"
      displayImage="true"  width="120" link="true" filter="png,jpg,gif"
      defaultValue="XWiki.XWikiUserSheet@noavatar.png"/}}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                sdumitriu Sergiu Dumitriu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: