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

0 votes
Accepted answer

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

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 Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

139 views 3 4
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