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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create a floating TOC for Confluence Cloud

Hi,

I'm looking to create a floating table of contents for Confluence Cloud and was wondering if anyone's had any luck? 

I can see previous questions and all solutions are for Server based install. 

There are no Add-On's yet for Cloud for this either. 

There is a TOC Macro which i've implemented, and there is a CSS section, and was wondering if I could use this section to enable it to be floating so when users scroll, the table scrolls with it. 

Any help or insight would be appreciated. 

Thanks in advance. 

DP

1 answer

Not possible in Confluence Cloud. To do this you would need a custom HTML and CSS feature.

CSS:

.fixedPosition {
 position: fixed;
}

HTML

<script type="text/javascript">AJS.toInit(function(){
 AJS.$('.fixedPosition').each(function(){
  var clone = AJS.$(this).clone().css('visibility','hidden').removeClass('fixedPosition');
  AJS.$(this).after(clone);
 });
});</script>

 but unfortunately, in Confluence cloud, there's no custom HTML and CSS feature. 

Thanks Hazwan, 

Appreciate the feedback. I believe there's add-ons to have CSS an HTML features for Cloud, so will trial and test.

Thanks once again. 

@Hazwan Ariffin are you able to create floating TOC in the Cloud version?

If yes, could you please share detailed steps here?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Confluence Bingo Round 3!

That’s right! Grandma’s back at it again, and this time she’s brought all her friends. In honor of Team '21, this Bingo round is dedicated to all things team-related, and the prizes are no exception....

45 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you