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

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 3.0 RC1
    • 3.0 M3
    • Other
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: