The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Toby Phipps
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2013

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Ryan Goodwin
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 Champions.
July 10, 2013

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!

Toby Phipps
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2013

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.

TAGS
AUG Leaders

Atlassian Community Events