How to export certain parts of a confluence page into a table?
Asked by Vera Sinnamon:

Hi,

I'd like to know, if it's possible to create several pages in a space on confluence, eg. one page per site and then export this data into a table.

All pages would have the same structure, but other details, eg contact details. I then would like to export a list so I can see all contacts over the different pages in one table/spreadsheet.

Thanks :)


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Vera Sinnamon](/t5/user/viewprofilepage/user-id/4988529) ,

We can also suggest trying our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) app and its [Table Excerpt/Table Excerpt Include](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macros.

These macros are an amplified version of the Page Properties/Page Properties Report macros, they allow you to collect multiple-row tables into one master report along with the source page meta data if required.

Later this combined report can be filtered and aggregated if necessary and even exported to csv, pdf, Word formats to use it outside Confluence.


author: Max Foerster - K15t
body: Hey [@Vera Sinnamon](/t5/user/viewprofilepage/user-id/4988529), and welcome to the Atlassian Community! ??

What kind of data do you want to store on each page? It sounds like contact details, that would easily fit into a two-column table. If that's the case, you can use the build-in **page properties,** and **page properties report** macros! You add data to a table in the macro and can pull it into a report based on a page label. The table exists on the page in Confluence and can even be hidden if you like. It's pretty straightforward.

That's an example of the table design on the page inside the macro

![ConfluenceCloud_PagePropertiesMacro_Edit.png](https://community.atlassian.com/t5/image/serverpage/image-id/206437i057906200468134D/image-size/large?v=v2&px=999 "ConfluenceCloud_PagePropertiesMacro_Edit.png")

And this is an example of the report table:

![ConfluenceCloud_Macro_PagePropertiesPreview.png](https://community.atlassian.com/t5/image/serverpage/image-id/206438iB29C29BE42EFDE1A/image-size/large?v=v2&px=999 "ConfluenceCloud_Macro_PagePropertiesPreview.png")

You can read more about it in the Confluence documentation:

* [Insert the page properties macro](https://support.atlassian.com/confluence-cloud/docs/insert-the-page-properties-macro/)
* [Insert the page properties report macro](https://support.atlassian.com/confluence-cloud/docs/insert-the-page-properties-report-macro/)

You should definitely have a look at these macros. ?? The only downside of page properties is that they are not very feature-rich in terms of support of other macros (like labels or the newly introduced [page statuses](https://community.atlassian.com/t5/Confluence-articles/Page-status-a-new-way-to-keep-your-team-informed/ba-p/1982476), which you might want to use for your contacts as well!) and difficult to maintain. You will always have to edit the data on the page and cannot do this in the report itself. Like I said before, the feature is straightforward but also limited.

If you're looking for a more versatile way to easily structure and maintain that kind of information, I suggest looking at our app [Orderly Databases for Confluence](https://marketplace.atlassian.com/apps/1227131/orderly-databases-for-confluence?hosting=cloud&tab=overview) on the Atlassian Marketplace. In Orderly, the data exists not only on the page but in a smarter table, more like a little database, and you could also edit or add new entries/data from there. The screenshot below shows an example of a people directory in a company. We built our own internal people directory with it and a lightweight CRM. I'm sure it will also be a good fit for your use case. ?

![Screenshot+2022-04-28+at+10.10.24.png](https://community.atlassian.com/t5/image/serverpage/image-id/206442i35E1FC5196CD3C77/image-size/large?v=v2&px=999 "Screenshot+2022-04-28+at+10.10.24.png")

On the page itself, it looks very similar to page properties:

![Screenshot+2022-04-28+at+10.11.08.png](https://community.atlassian.com/t5/image/serverpage/image-id/206446iF663C0B78869B072/image-size/large?v=v2&px=999 "Screenshot+2022-04-28+at+10.11.08.png")

The nice thing is that you can even switch to a different view with cards in the database table and on the page with the data itself.

![Orderly_GIFs_Employee.gif](https://community.atlassian.com/t5/image/serverpage/image-id/206444iB9298CF8AC323FDD/image-dimensions/549x343?v=v2 "Orderly_GIFs_Employee.gif")

If I got you curious, you find the use case documented here [Create a Database for Your Employee Data](https://help.k15t.com/orderly-databases/create-a-database-for-your-employee-data-197766230.html) and can easily adapt it.

Let me know if you have further questions. I'm happy to help. :)

Best, Max

P.S. I totally forgot to mention that you could also maintain the information in the database only and then maybe just pull an entry onto a page where necessary. Or re-use one entry of the database on multiple pages. That's something you would have a hard time with using page properties as it causes duplicate entries in the report.

comments: author: Vera Sinnamon
body: Hi Max,

This is awesome! I started using this, however still got a few questions. I'd like to have one Confluence page per site, however different headings within the page, eg. site details, metering details.

Do I create different data bases for each heading? If yes, that's what I did, but it will only show one database on the confluence page.

Thanks,

Vera


author: Max Foerster - K15t
body: Hey [@Vera Sinnamon](/t5/user/viewprofilepage/user-id/4988529)

You should have an email from me in your inbox, let's get your questions answered in a call. ?

Best, Max


author: Fabio Racobaldo _Herzum_
body: Hi [@Vera Sinnamon](/t5/user/viewprofilepage/user-id/4988529) ,

welcome to the Atlassian Community!

My suggestion is to add a specific label to each single page and retrieve all of them through a search via CQL.

Hope this helps,

Fabio


Tags: cloud

confluence-cloud