Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get $pageManager Back

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.
June 5, 2025

It looks like $pageManager was removed from the default velocity context so it is no longer available for use in user macros. This has broken a ton of our user macros. Anyone know of a way to get it back or something that can do similar function as it? We used $pageManager.getPage() a lot.

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
June 6, 2025

@Davin Studer Atlassian introduced so-called allowlists to Velocity templates, and drastically reduced the objects/methods available for user macros. So, what you see is by design and for security reasons.

(All Confluence apps had to be adjusted for these allowlists.)

I don't know about user macros, but it seems you can add objects to the Velocity context by configuring system properties!  See the section "Method allowlist" on this page.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events