Accessing/setting page properties in user macro

Bill Bailey
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.
October 19, 2022

I am able to set page properties using the macro on the page and pass those to Scroll PDF (in this case). If I include that page properties macro inside a user macro, the values are not set (maybe related to reported bugs about not working inside a panel macro).

So I think that I need to handle this with get/set to the page objects, for example, such as:

#set($fileName=$contentPropertyManager.getTextProperty($content, "metadata.scroll.pagetitle"))

But can't find anything regarding the syntax for the page properties macro.

Any help would be appreciated.

1 answer

1 accepted

2 votes
Answer accepted
Tom Rough
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.
October 24, 2022

Hey Bill, I thought it would make sense to put the same information here which I also already relayed to you via your K15t support ticket.

As I mentioned (in relation to Scroll PDF Exporter), Page Properties values are only picked up by our app if they are present in the storage format of the page. This means when you insert a user macro that internally outputs a Page Properties macro these related properties won’t be visible to our app.

Unfortunately, due to the way in which Page Properties and User Macros work, we aren’t aware of any way to work around this.

Regards, Thomas (K15t)

Bill Bailey
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.
November 1, 2022

Yeah, this is a limitation with the page prop macro that I think I have hit before. The page prop doesn't like to be wrapped in other macros.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.4.9
TAGS
AUG Leaders

Atlassian Community Events