Is it possible to copy and edit a Confluence shipped macro?

I want to tweak the output created by the "Attachments" macro that is shipped with Confluence, such as to remove/retitle columns etc. Is there any way to copy it and edit it as a new User Macro?

1 answer

Hi Toby,

If you'd like to customize the attachments macro, you should download, extract, then customize the confluence attachments add-on. You can download the add-on here:

https://marketplace.atlassian.com/plugins/confluence.extra.attachments

Once you have the jar file, you can customize it after extracting the files. If you are unsure of how to extract the files follow these instructions:

https://confluence.atlassian.com/display/CONFKB/How+to+Edit+Files+in+Confluence+JAR+Files

Hope this helps!

Ryan, many thanks. I'm looking inside the JAR file now. Just one minor clarification - is the Java source for the .class files in the macro provided by Atlassian or only the compiled .class files? Without the Java source, it looks like I can customize the .vm and therefore most of the UI presentation, but not the actual engine pulling the attachments back.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

450 views 21 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you