Best way to add content to every page in a space?

I'm new to Confluence administration, but not Confluence as a wiki editor.

I have an onDemand wiki, and I wanted to figure out the best to create some content that will be applied to all the pages in a space.

I imagine the fasted way would be through some sort of plugin (if one existed)

However, my research suggests that I'll have to create a custom theme and put the content there.

Or an easier alternative to a custom theme is to put the content in a Space Template, and create all my pages from the template, but I don't like that solution because I'd never be able to change the content.

Or maybe creating a theme isn't all that hard.

For now, I just want add the Google Analytics JavaScript include to all my pages. So maybe if there is a plugin for that, let me know about it.



2 answers

1 accepted

0 votes
Accepted answer

I found this which describes the Custom HTML feature, and does suit my needs, however I don't appear to have a "Custom HTML" on my Confluence OnDemand site.

And this confirms it, onDemand does not have Custom HTML

I'm not familiar with the SaaS confluence, but I believe the custom HTML is not disabled, in which case that's the best way for this particular task.

Admin -> custom html -> add the javascript to the section "at the end of head".

For the theming in general, as you probably can;t upload plugins, the best way might be to do it entirely in javascript, and include the relevant files using the mechanism above.

Oh... that's surprising. You can do a lot with that custom html thing, and difficult to see why it's restricted. It's not as though it parses velocity or something.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

458 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you