attachmentSelector

Last modified by Lucas Charpentier on 2026/09/18 14:28

Doc: https://extensions.xwiki.org/xwiki/bin/view/Extension/Attachment%20Application#HAttachmentSelector

Parameters:

  • classname
  • property
  • object WarningValidation should be done on this field to only allow numbers.
  • cssClass InformationGeneric style only parameter
  • savemode ErrorThis parameter accepts only a few defined values. The picker should not be generic text.
  • buttontext
  • defaultValue ErrorThis parameter expects an attachment reference, it should have a proper picker.
  • filter WarningThis parameter accepts lists, its picker should not be generic but help the user in figuring out how to convey multiple items.
  • displayImage
  • width InformationGeneric style only parameter
  • height InformationGeneric style only parameter
  • alternateText
  • link
  • targetdocname
  • versionSummary

15 parameters

Information

FIXED: The documentation for these parameters does not use the standard table. Some info is missing from the documentation and can only be figured out by the user when trying things out...

Quick action? ✅

Just inserted screenshot:

1739270639616-901.png

1740409887315-705.png

Information

Should check what are the most commonly used parameters. Does it make sense to only have `Object` in the collapsed view for non mandatory parameters?

No content in the page is created until the required parameters in the macro editor are filled up.

Open the dialog with: automatically done, focuses the first mandatory field.

Default dialog screenshot: See above

Extended dialog screenshot:

1739270743655-277.png

JIRA issues

Query used to look for existing issues:

Issues that already existed:

None

Issues created by this analysis:

Get Connected