Page Approval - is there a way to include the macro on all pages in a space?

  • 1
  • Problem
  • Updated 2 years ago
I have a decent sized space, with plenty of child pages. I would like any changes made to require approval, and so we can see the approval status as well.
I have tried using $helper.renderConfluenceMacro in the page content to force the macro to be included in every page - but it returns back with a Null Pointer exception when I embed it in this fashion ("Error formatting macro: pageapproval: java.lang.NullPointerException").

Is there anything obvious I am missing or doing wrong?
Photo of Chris D'Aunay

Chris D'Aunay

  • 4 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Nurhana Ziana Bt. Hanafi

Nurhana Ziana Bt. Hanafi, Employee

  • 3500 Posts
  • 269 Reply Likes
Hello Chris,

Kindly please try with Page Approval Space Settings.

Thanks&Regards,
Ziana
Photo of Chris D'Aunay

Chris D'Aunay

  • 4 Posts
  • 0 Reply Likes
I have set the Space Settings to on - but nothing shows up on the page. I assumed I needed to include the macro as well.
Is it just a case of turning the options on and it should work? 
Photo of Chris D'Aunay

Chris D'Aunay

  • 4 Posts
  • 0 Reply Likes
I've still tried playing with the settings, but without the macro on each page nothing seems to work.
Photo of Chris D'Aunay

Chris D'Aunay

  • 4 Posts
  • 0 Reply Likes
Latest try is placing the macro in the Page Layout for the space. This causes a null pointer exception though.

 <div id="main-content" class="wiki-content">
$helper.renderConfluenceMacro("{pageapproval}")        
$body
 $helper.renderConfluenceMacro("{pageapproval}")
        </div>
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Chris,

In order for us to replicate/investigate the Page Approval Space Settings, can you share the Page Approval version and Confluence version you're using ?

Thank you.

Regards,
Suresh
(Edited)