Macro Applied to multiple Pages in a Space

Lager November 14, 2024

I am wanting to add a header and footer to multiple pages within a Space. Is a macro capable of adding the header and footer to to all the pages in the Space at one time? 

3 answers

2 accepted

1 vote
Answer accepted
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2024

Hi @Lager , Welcome to the community!

In Confluence Cloud, macros do not automatically apply headers and footers across all pages in a space.

However, here are a couple of approaches that can help:

  1. Template-Based Solution: You can create a page template that includes the header and footer content as reusable elements. Users can apply this template when creating new pages, ensuring consistency across the space.

  2. Include Page Macro: For existing pages, you can create separate header and footer pages, then use the Include Page macro on each page where you want the header and footer. This allows you to centrally update the header/footer content on the included pages, which will then automatically reflect across all pages using the macro.

  3. Space Stylesheet (for header and footer styling): If you have Confluence Admin permissions, you could apply custom CSS via the Space Stylesheet feature (if available on your plan). This method allows you to add styling elements like headers and footers to all pages within a space, but it requires some CSS knowledge and may not work on all Confluence Cloud plans, as custom CSS is limited on certain tiers.

Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 15, 2024

Hi @Manoj Gangwar - I think CSS options on Cloud are limited to PDF exports. 

Full space CSS is DC only.

https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html 

Like # people like this
Lager November 15, 2024

I think the Include Page Macro approach would be the most apt solution for what I am trying to do. Thanks

0 votes
Answer accepted
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 15, 2024

Hi @Lager and welcome to the Community.

If you want to add smth to multiple EXISTING pages, this might be possible programmatically via API (there was a thread here in which someone was adding one element to multiple pages at once via API).

If you're getting started, templates are the way to go.

Other than that, you will have to look at theme apps (Spacecraft, Aura, Refined) that provide a customizable skin over your Confluence content or go big with apps like Scroll Viewport that are, while being Confluence apps, can make your content Confluence independent (domain, SSO, etc.).

This is my company documentation our site built in Viewport with customized CSS and JS. 

Lager November 15, 2024

Thank you for your help.

Like # people like this
Lager November 15, 2024

It is good to know there is a possibility to be able to add an element to multiple pages via the API. This is one of the solutions I will be exploring.

Zoriana Bogutska_Adaptavist_
Atlassian Partner
December 13, 2024

@Kristian Klima Is Aura a theme app? 

Like Kristian Klima likes this
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2024

@Zoriana Bogutska_Adaptavist_ 

I wanna say yes :) Seibert Media and their affiliates like Appanvil have several apps that modify Confluence content's look and feel and add extra features. So I guess it counts as a theme app* as it modifies the contents look directly on Confluence.

There's Aura, Mantra, Karma, Spacecraft... I think @Patricia Modispacher _appanvil_ might offer a better explanation.

 

 


*For example, apps such as Scroll VIewport and Instant Websites take the Confluence content outside of Confluence and actually build an independent site. So they are bit different compared to regular theme apps although they do give your Confluence content a different look. Just not directly on Confluence.

Like # people like this
Zoriana Bogutska_Adaptavist_
Atlassian Partner
December 13, 2024

It belongs to the same type of app as Content Formatting Macros for Confluence. You can create headers and footers with them, but you'll have to copy them manually to each page in space

Patricia Modispacher _appanvil_
Atlassian Partner
December 13, 2024

Thanks for the discussion and mentioning me, @Kristian Klima 😊

 

Hi @Zoriana Bogutska_Adaptavist_ 

Actually, Aura is a macro suite designed to enhance Confluence pages with a wide range of features like countdowns, interactive status updates, dynamic panels, child tabs, and more. You can create your own templates using Aura macros and save them for your team to reuse.

So it's also about design, but more about function and overview.

If you're looking for a pre-built theme solution, Karma might be a better option. It's a free app with over 200 ready-made themes and a drag-and-drop builder that lets you easily customize headers, footers, and more without needing to write any code.

To sum it up:

  • Aura gives you full flexibility to create your own customized layouts using powerful macros.
  • Karma offers ready-made themes with easy customization for a quicker setup.

Hope this clears it up! Let me know if you need more info or help getting started. 🚀

 

Like # people like this
Zoriana Bogutska_Adaptavist_
Atlassian Partner
December 13, 2024

@Patricia Modispacher _appanvil_ Is it possible to apply the same headers and footnotes to all the pages in the space at one time, like Lager asked? (not by saving as a template, which is not the same)

Like # people like this
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2024

I guess... it's an interesting debate about where / and how one draws a line what is and isn't a theme app.

Seiber/Appanvil folks might have an interesting point of view as their apps cover the spectrum of what I guess are non-theme, like-theme, and theme apps :) 

 

EDIT: of course, by the time I replied, the replies were posted :D 

Like Lager likes this
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2024

@Patricia Modispacher _appanvil_ You talk about Aura and Karma and finish your post with an icon of a ... spacecraft :D 

Like Lager likes this
1 vote
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.
November 15, 2024

@Lager I added a footer to each page using Space settings > Look and feel > Page layout. There is a spot to add a header and a footer.

At the top of the page, it says:

Customize the look of all pages in Confluence. Use wiki markup to add text, links, macros and images (from the web or attached to a page in the space).

I can't find a page that describes this tab, but there is a link on the page to what kind of wiki markup you can add. That opens in the right pane of the page; I think this is the equivalent page: https://support.atlassian.com/confluence-cloud/docs/insert-confluence-wiki-markup/ 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events