Get hands-on training for JIRA Software, Confluence, and more at Atlassian Summit Europe. Register now ›

At Atlassian, every person in an outbound marketing role works the salesdesk a few hours per week. There’s nothing like direct prospect interaction to really understand your market and learn what customers REALLY want.
Here’s an interesting question that a prospect recently asked:

I would like to add attachments to the bottom of my Confuence pages without having to manually insert the {attachments} macro into each page. Do you have any suggestions on how to achieve this? Without attachments automatically displayed on the page, my users won’t know they are there.

There is a way to add the attachments macro to the bottom of every page globally or to every page on the entire Confluence site. In fact, it’s pretty simple to do…it just requires a minor tweak to the page layout. Here’s what you do:

  1. Step 1 – To do it globally, login as the Confluence administrator and go to the layouts tab.
    layouts.png
  2. Step 2 – Click on the create custom link under page layout.
  3. Step 3 – Go to the bottom of the template and place the cursor right before the last closing </div> tag.
    cursor.png
  4. Step 4 – Paste the following code right befor the div tag (You can always revert back to the default if you mess it up):
  5. <h1>Attachments</h1>
    $helper.renderConfluenceMacro(“{attachments:upload=true}”)
  6. Step 5 – It should now look like this:
    final code.png
  7. Step 6 – Save the page layout. Now every page in your Confluence site will display a list of attachments (as seen below) at the bottom of every page in your Confluence site.

AttachmentsMacroWithOfficeDocs.png

If you want to do this for just one Confluence space, first go to the space admin tab, find the page layout link, and follow the same instructions.

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now