Display a single property value in a confluence page
Asked by Jeff:

Hello,

How can I display a single property's value within a confluence page ?

Thanks your support,

Jeff


Answers:
author: George Lewe (LSY)
body: Hi all,

I would like to do the same.

How can I display a single page property value from a page properties macro?

The page property report macro displays all of them in a table. I just need to get the value of one specific property.

Any idea? Can it be done with a user macro and Groovy?

Best regards,  
George

comments: author: Katerina Kovriga {Stiltsoft}
body: Hi [@George Lewe (LSY)](/t5/user/viewprofilepage/user-id/502047) ,

We can suggest trying our app - [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud).

You'll be able to wrap your Page Properties Report into the [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) macro and show only the required row(s). And you may also hide the unwanted columns as well.


author: George Lewe (LSY)
body: Hi Katerina,

thanks. We have the plugin already. However, I cannot make it work the way I like. It seems I always need to add a header row to make the filtering work and I cannot hide the header row then.

Is there a documentation about this specific use case?

Can I refer to a property of page A on page B?

Best regards,  
George


author: Katerina Kovriga {Stiltsoft}
body: Yes, you are right - you can't hide the header row if you need to filter something.

Maybe the [Table Excerpt/Table Excerpt Include](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros) macros will do the trick?

Wrap the data in the required cell into the Table Excerpt macro:

![Thu 5-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/163863iA68E040CFB4937F3/image-size/large?v=v2&px=999 "Thu 5-1.png")

Then you'll be able to reuse this data via the Table Excerpt Include macro:

![Thu 5-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/163866iDD0E683FDE23E9EF/image-size/large?v=v2&px=999 "Thu 5-2.png")

If your Confluence instance is Server/Data Center, the source table with the Table Excerpt macro can be also wrapped in the Page Properties macro to create your big report that you've mentioned before. Unfortunately, for Cloud you can't nest several macros.


author: Reinhard Piltz
body: which side property?


author: Shannon S
body: Hi Jeff,

Can you describe more exactly what you are looking to display? Is it a specific variable you want to set and display on more than one page? Can you confirm your Confluence version as well?

Regards,  
Shannon

comments: author: Jeff
body: Dear Sharon,

I'm on confluence server 6.5.1.

I want to display a property from the page itself within the page itself, and only one property's value..

I'm not using the properties macro, as I do not want to display them all and also apply some style with a user macro.

Thanks for your feedback.

Jeff


author: Shannon S
body: Hi Jeff,

The [Excerpt Include Macro](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) would allow you to include an excerpt from elsewhere on the page.

If this doesn't help, could you be a bit more specific about what kind of property you need to include?

Regards,

Shannon