Table Excerpt and Table Excerpt include macros with a Confluence Template

Ricky Rich
Contributor
June 12, 2024

Hello,

I have created a template used to generate many different reporting pages (one page for each specific solution/program).

 

In the template I have a table data with some fields to be populated once you switch the page to edit content.

 

I would like to consolidate all the data coming from those individual table data on another reporting page. I have wrapped the Table data macro in a Table Excerpt macro in the main template. 

In the new reporting page I created the Table Excertp include macro and point to the specific page->children where all those individual pages created from this template are stored.

Unfortunately I get the error"No Table Excerpt macro with name MilestonesProgramme found. Did you publish the page with the Table Excerpt macro?

"MilestonesProgramme" is the name I gave to the Table Excerpt macro.

Weird thing is that it works if I point the Table Excerpt include macro to the Template but I get this error when pointing to the page/children where all those pages based on the Template are sitting. Any idea on how to fix this? Is Table Excerpt compatible with pages created from a Template?

1 answer

2 votes
Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2024

Hi @Ricky Rich ,

Maybe it is better for you to refer to our support where you'll be able to share your page tree and macro settings.

As for now, you describe a standard case that should be working just fine: you create a custom template with a Table Excerpt macro named "MilestonesProgramme". 

On the parent page you have the Table Excerpt Include macro that collects "MilestonesProgramme" excerpts from all the child pages.

The excerpt source in the macro settings should be "Page and child pages". Did you mean this option by "point to the specific page->children" or smth else? Please check this moment once more.

On the same parent page you have the "Create from template" button or simply create new pages choosing this specific template from the list manually. As a result, you have multiple pages that are child pages to the parent page and each child page contain the "MilestonesProgramme" excerpt.

Once the new child page is published, the data from an additional excerpt is added to the master report collected by the Table Excerpt Include macro.

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2024

Also as you use templates, often these pages are given some labels as well.

If you select "Pages with labels" as the Excerpt source and set the required label in the Table Excerpt Include macro, does it collect your Excerpts?

Maybe firstly you've just chosen the wrong parent page? Maybe there are several pages with similar names or smth.

Ricky Rich
Contributor
June 12, 2024

Hello,

Yes the Excerpt Include macro is pointing to Page and Child pages and also I have referenced the page label used on the main template.

The parent page name is correct as it is a copy/paste.

Please note that the Excerpt include macro is created on a different page within the space and not the parent page where all those individual pages created from the template are stored as child pages. 

Anyway even if I add the macro on the parent page it will return same error.

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2024

Seems that smth is messed up in the settings of the macro and the page tree structure.

If you use labels, then your Table Excerpt Include macro may be on any page you want across your Confluence. You define labels and define spaces from which you want to grab the data. 

If you use the page and child pages, then your Table Excerpt Include macro should be on the parent page and Table Excerpts should be on the child pages.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events