Forums

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

(Java) API to access space header and footer

Tim Kiefer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2024

Hi,

I have Confluence Data Center and there I use the feature that spaces can have custom header, footer, sidebar texts. The feature is under "Look and Feel" in die GUI.

However, I would like to automate what is written in the header, ... depending on the space. Therefore, I am working on a plugin to set header texts for all spaces.

My question: Is there an (internal/Java) API that I can use to get/set the text for header/footer/sidebar?

In the Confluence Javadoc, I found a class "CustomPageContentAction" that has a method "setHeaderText" - but I have no idea how to use it.

Is it possible? If so, how?

Bonus question: If possible, I would also like to change the stylesheet for a space. My best guess is, that if above is possible, then it will also be possible to change the style?!

Thanks!

Tim

1 answer

0 votes
Mercy
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 Champions.
December 10, 2025

Confluence Data Center doesn’t expose a public Java or REST API for managing space header, footer, or sidebar content. Those “Look and Feel” elements are stored in the database and handled through internal classes such as `CustomPageContentAction` and `SpaceLookAndFeel`, which are part of the Confluence core web actions layer rather than plugin-accessible services. The supported way to automate this is through the SpaceLookAndFeelManager API available in the Java API—this service can programmatically retrieve or update a `SpaceLookAndFeel` object for a given space key.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events