Space Attachments Macro

Still need help?

The Atlassian Community is here for you.

Ask the community

The Space Attachments macro displays a list of all files attached to pages in a space. It shows details of the file and the includes a link to the page a file is attached to. 

Filters allow you to show only files with a particular label or file extension. 

Screenshot: The Space Attachments macro


Using the Space Attachments macro

To add the Space Attachments macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros
  2. Find and select the required macro

Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Autocomplete for links, files, macros and mentions.

To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

Parameters

The Space Attachments macro displays a list of all the attachments in a space. You can choose to show attachments from the current space, or another space. 

Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

ParameterDefaultDescription
Space(none)Selects the Confluence space to display attachments for. If you do not specify a space, the current space will be used.
Show Filter Controls
(showFilter) 
trueDetermines whether or not the filter panel is shown. If you select this option, people viewing the page will be able to filter the list of attachments by file type (extension) and by label.

Code examples

The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page. 

Macro name: space-attachments

Macro body: None.

Storage format example

  <ac:structured-macro ac:name="space-attachments">
    <ac:parameter ac:name="showFilter">false</ac:parameter>
    <ac:parameter ac:name="space">
      <ri:space ri:space-key="ds"/>
    </ac:parameter>
  </ac:structured-macro>

Wiki markup example

{space-attachments:showFilter=false|space=ds}

Last modified on Mar 17, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.