How to add user-defined page properties?

Klaas Van Ammel April 15, 2015

Is it possible to add user-defined page properties, similar to those which are displayed in the page history (e.g. version)? Goal is to have metadata of which the value is page revision specific, not just page specific. Metadata using the Metadata plug-in is always displayed in the current state of the page, even when viewing an old revision of the page.

3 answers

1 vote
Ture Hoefner July 14, 2020

The Page Properties macro confused me for a while because I assumed that it deals with the page properties that Confluence provides for apps:  https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/

But the Page Properties (and Report) macro is something altogether different.  It is a key/value aggregator that aggregates a collection of keys/values filtered by page label.

I'm posting this here because this is where I landed while searching for info on whether or not the Page Properties macro uses page properties (it does not).

0 votes
Klaas Van Ammel April 20, 2015

Yes, I've tried those macros, but as to my understanding the 'page properties' which are defined via the page properties macro are only accessible via the page properties report macro, and only in the format of that macro. Or can these properties also be accessed in another way?

Davin Studer
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.
April 21, 2015

By default they cannot be accessed in other ways.

Klaas Van Ammel April 21, 2015

Do you mean there is a non-default way too in which they can be accessed?

Davin Studer
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.
April 22, 2015

Sure, but you'd have to write your own add-on to do it.

Klaas Van Ammel April 24, 2015

Where does Confluence store these properties? Are there examples available how to retrieve them or where to look for them via a custom plug-in?

Davin Studer
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.
April 27, 2015

Here is the developer documentation. Also, if you are an Atlassian customer you can get the source I believe for the page properties and the page properties report macro. https://developer.atlassian.com/docs/getting-started

0 votes
Davin Studer
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.
April 16, 2015

Have you tried looking at the page properties macro? That's the whole point of it. Combine it with the page properties report macro and you can get some nice reporting on the meta data within your pages.

https://confluence.atlassian.com/display/DOC/Page+Properties+Macro

https://confluence.atlassian.com/display/DOC/Page+Properties+Report+Macro

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events