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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

435 views 18 9
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