Multi-part table

I have a long table. I decided to divide it on multiple <tbody> parts. But I noticed it causes many issues.

First I wanted to add possibility to expand/collapse those parts of the table. But apparently <ac:structured-macro> cannot wrap only <tbody> (and thus be inside of a <table>).

Then I tried Table Plus Macro. This would also provide me benefit of controlling which columns sort, showing initial sort and adding auto-numbering. But it seems to be incapable of dealing with multiple <tbody> as well.

I have considered just making separate tables. But then I would not be able to align column widths in all the tables without explicitly setting them. (I don't want to set any particular size as I want them to adapt to content.)

Also since I have multiple <tbody> parts each of them starts with a header-row. The row contains only one column (spanned across entire table) with a header for the following part. And this prevents column sorting in ordinary tables (in fact any spanning seems to do so). And Table Plus Macro seems to be unable to treat such row differently (not sort it, not auto-number it). The first one can be included in heading and thus avoid problems but any others (inside the table) remain.

Any advice how to deal with such tables?

1 answer

I agree, more control for long tables would be nice.

My ideal would be tables with support for multiple <tbody>. Each <tbody> should allow precise control over column widths and make it easy to define where and when to sort and where and when to force or allow page breaks. colspan and rowspan should not interfere with any of that. Page breaks should come with an option for repeated headers plus customisable info text before the break. All table elements (<thead>, <tbody>, <tfoot>, <tr>, <td>) should be easily addressable with CSS and support nth-child(odd)and nth-child(even) for flexible colouring or other adaptions.

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 ...

461 views 19 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