Edit the columns of the Attachments Macro

Hi all,

does anybody know a way to edit the columns that are shown in the attachments macro? I am especially looking for a way to hide the labels.

Thanks a lot for your input.

Regards,

Bruce

2 answers

1 accepted

This widget could not be displayed.

You have to edit the attachment plugin jar which is bundled in Confluence. Go to <confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup and open atlassian-bundled-plugins.zip. Locate confluence-attachments-plugin-x.x.x.jar and open it. The file to edit is in templates/extra/attachments folder, called attachments-table.vm. Delete these lines to remove the labels:

  • &lt;th class="labels"&gt;$action.getText('labels.name')&lt;/th&gt;
  • &lt;td&gt;#parse("/labels/labels-editor-content.vm")&lt;/td&gt;

Thanks a lot, I will try that.

Unfortunately it took some time to implement, but it works fine. Thanks

This widget could not be displayed.

Is this where you would also be able to edit the size of the "Name" column to make it larger (wider) so that the name doesn't appear as squished in IEv10?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

543 views 7 6
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