Change the filename column for all attachment pages in Confluence

Is there a way to configure the width of the filename column on the attachment pages in Confluence? Is it a setting in a config file or something that could be handled with css?

Any help would be appreciated.

2 answers

I don't know the answer to your specific question, but, I do know it is very annoying the way it currently works :(. I assume you are talking about the attachments view for a page and not the attachments macro? I gave up on both of them and now ship the Attachment-table macro with the Table Plugin for Confluence which provides a customizable list of attachments in a Confluence table. It solved a number of use cases I had relating to listing sets of attachments. By placing the macro on the page, you can avoid the need to go to the attachment's view for many cases.

0 votes
Davin Studer Community Champion Jan 16, 2014

You could change the size with css by targeting td cells with a class of filename-column and set the width.

td.filename-column {width: 50%};

However, I don't think that will really get you what you want as long file names actually get truncated and have a "..." placed at the end prior to the page being sent.

To really get around it you would also have to add in some javascript to check if the url contains "viewpageattachments.action?pageId" and then loop through the td tags and get the value in the title attribute and replace the text of the nested anchor element of the td.

You would have to put the javascript in the global custom html. Or you could create a Speakeasy extension. I have moved to putting custom javascript in speakeasy extensions. It makes the cutomizations more modular and easier to turn off if it messes up stuff.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,091 views 56 8
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