Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments macro

Rob Moser
Contributor
October 26, 2011

I apologise if this is a stupid question - it certainly feels like one - but how do I get a list of the attachments of a page into the page in 4.0? The docs here:

http://confluence.atlassian.com/display/DOC/Displaying+a+List+of+Attachments+in+a+Page

Seem to clearly state that I should use the Attachments macro... which as near as I can tell, does not exist. The editor doesn't recognise anything by that name, and Insert -> Other Macros - which is how that doco describes using it - brings up a list with nothing by that name, nor anything by any other name that seems to do the same thing.

5 answers

1 vote
Kay Brown
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2011

In Edit mode, select Insert and then Wiki Markup. Type: {attachments}. Save the document.

0 votes
Kay Brown
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2011

You might try rebooting the server to see if that clears up any glitches.

Regards,

Kay

Rob Moser
Contributor
October 26, 2011

I can suggest it to our server admin, but I don't think he's going to be real keen on the idea unless there's some reason to believe that it will help (like a known bug.)

0 votes
Rob Moser
Contributor
October 26, 2011

I was capitalising (e.g. "Attachments") but otherwise spelling it the same as most of you. I tried not capitalising, and spelling it "attachements" like Jo-Anne suggests, and got nothing from auto-complete in the macro browser or the editor. Searching for attachments in the macro browser shows me Gallery and Multimedia, but nothing else. Typing {attachments} in the editor and hitting save gets me a page with "{attachments}" on it.

However. following Kay's suggestion of going to Insert->Wiki Markup, and putting {attachments} there, did work. So I have a workaround... now can anyone explain why it behaves this way? And/or how to make it stop?

I checked my account settings for Editor, by the way: I do not have Disable Autocomplete or Disable Autoformatting set. I had experimented with setting them in the past, then disabled them again. Perhaps something didn't get cleaned up quite right when I unset them again?

0 votes
Jo-Anne MacLeod
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2011

click on the "Insert/Add Macros" button in wiki markup (or "More macros" in the other editor), in the search window enter attachements. It will add the macro to your page. Of course if you don't have any attachments, it won't display anything.

0 votes
Aseem Parikh
Contributor
October 26, 2011

What are you searching for in the macro browser? When I start typing "attachments" it pops up immediately.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events