Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

2 answers

0 votes
Ryan Wise I'm New Here Nov 19, 2021

@Dipam Pala I believe the HTML and CSS macros inject their content into an iFrame. That's going to potentially create some limitations on what you're looking to do. 

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. 

Like Brad likes this

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

If yes, could you please share detailed steps here?

Like # people like this

I also want to understand if this possible on Confluence cloud 

Like Sven Larson likes this

A floating table of contents on the right-hand-side of each page would be amazing. Did anyone find a way to do this?

@Dipam Pala please reply back with an update

Was there an update on this topic?

Yeah, likewise - we'd love to have this feature for our docs / know of the workaround...

David I'm New Here Jan 11, 2022

Likewise, keen to get this feature on our pages.  Has there been any update on this item?

Suggest an answer

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

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

38,012 views 27 125
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