I want to use the data part of a table while leaving out the header row so that I can add several excerpts to form a bigger table. Help, ideas, comments??
You sound like you're trying to perform magic, like me haha. I am trying to perform something very similar to this.
First question, do you have multiple excerpts on the same page? If so, you will need to either use the multi-excerpt addon or get hands dirty with user macros. (All this does is remove the heavy lifting, you will still need a user macro to create the bigger table you want but you can probably do in jQuery in a couple lines to be honest, assuming they have the same columns).
If it is multiple excerpts on a page then maybe forget about the excerpt macro and make a macro to add classes or ID's to your excerpt information (something like:
## Body processing: Rendered ## @param class:title=Class|type=string|required=true|desc=The class(es) you want to add $body <script> $("table").last().addClass("$paramclass"); </script>
What I am currently using to add classes to confluence tables).
Then on your table page, pull the information from the pages and display how you want.
My only issue with this method is that, hypothetically, if you have 1000's of pages, how long would it take to pull and parse all the information? My alternative that I am exploring now is to instead update the table page from the excerpt page whenever they are loaded rather than trying to pull all the data.
This method would, onLoad, check if the excerpt is on the table page, if it is update values otherwise create new row. Currently, I am trying to figure out how to POST to a page without having to put user credentials in the user macro.
If you find any charms, incantations or pixie dust to help with this, I'd appreciate you throwing some my way.
I had a table that served as a 'Summary' of a process on many pages. I took this table and created a single table that provided an overview of all processes in confluence based on this table.
This was a single table on a process page:
Last Review Date: 01-01-2016 Process Owner: Me Process Support: You Critical: Yes Stakeholder: Some External Dude
That was transformed into the below on my Summary table:
Process Name | Critical | Owner | Support | Stakeholder | Review Date Process X | Yes | Me | You | Some External Dude | 01-01-2016 --- more rows
It was a PITA to do tbh because I had to learn various bits and pieces to pull it off but it was effectively:
I also need to make a method to update the 'Process Overview' page from a click rather than having to load each process page individually.
But this meant that any changes were instantly updated on the page and did not require a huge amount of overhead to perform this.
Hope that's helpful.
Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...
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!
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