Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Custom JS scripting for Confluence Space

Hi,

We want to inject custom JS script to help with some customizations for the space. We only want to inject this in a specific space .

Can you please let me know how this is possible?

I  know that there is HTML macro https://confluence.atlassian.com/doc/html-macro-38273085.html

Looks like HTML Macros require us to add script to every page manually. We are looking for a space wide method. 

Is there a way we can do this once but for the whole space ?

 

Thanks

Sushmitha

 

1 comment

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 28, 2023

You could do this by creating a new "theme" for Confluence, and embedding your JS in it.  If you then set a space to use that theme, your JS will be used on every page in the space (themes do not affect the admin pages for spaces, nor the global functions like the dashboard and search, but they do apply to every page in a space)

You could also amend the global header page, adding your script(s) so that they run on every page Confluence serves up.  If you need that to be space specific, you will need to encase it in an "if space = x" block to make sure it only runs in certain spaces.

Like Aron Gombas likes this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events