Managing Panel and Page Property Visibility Across Multiple Confluence Pages

Reid Watson March 30, 2024

I'm trying to conceal certain panels and page properties across 300 Confluence pages. These pages were initially deployed using a template, but the template is currently malfunctioning with several issues. Does anyone have a viable solution for managing this type of requirement in Confluence?

I'm currently exploring ScriptRunner, but any assistance or guidance would be greatly appreciated.

2 answers

1 accepted

0 votes
Answer accepted
Reid Watson April 5, 2024

Ive created a JavaScript which is incorporated into an HTML Macro, designed to conceal panels on a page. The macro has been implemented on several pages through a Groovy script using ScriptRunner. However it's important to note that this method has a limitation to  users with page editing rights are still able to see the panel.

0 votes
Barbara Szczesniak
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 1, 2024

@Reid Watson Welcome to the Atlassian Community!

Are you using Confluence Cloud or Data Center? 

I don't know about Data Center, but, in Cloud, once you create a page from a template, the page is not connected to the template anymore and changes or issues with the template do no affect the page. You also cannot apply a template to existing pages.

I think you are saying that you need to change the content displayed on all of these pages in the same way. What exactly you need to accomplish may affect what third-party app would work best for you.

When you say you need to "conceal" panels and page properties, it sounds like you want to hide them (don't think this can be done), rather than remove them. Please provide more detail on what you want to do.

Reid Watson April 1, 2024

Hi @Barbara Szczesniak 

Thank you for your response. I have developed a JavaScript code that is embedded within an HTML Macro to hide panels within a page. This macro has been deployed across multiple pages using a Groovy script within ScriptRunner.

 

The sole limitation is that users with page editing permissions can view the panel. 

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events