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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.