DiscoTOC - automatic table of contents

4 Likes

Thank you and sorry for missing that…

Works like a charm! Really appreciate your time and help! :raising_hands:

2 Likes

Everything is working, but:

  1. On mobile I don’t see the button ā€œTable of Contentsā€ as shown in the instructions:

  1. The only way to see it is to add at least a comment/reply (I would expect it to show even if no replies were added?), but even then, what is shown is not the same as what is in the image:

Is it possible to make it show ā€œTable of Contentsā€, not just the icon? I’m thinking that maybe it’s possible via CSS, but I was wondering if this is a new ā€œfeatureā€ or something else I can change to show the text?

I even tried to change the default text, in case that was the issue, but no luck:

image


EDIT: I was able to add the text via CSS in a custom component, but still wondering if this is a bug or something?

@media screen and (max-width: 767px) {
  .d-toc-mini button::after {
    content: "Table of Contents";
    margin-left: 5px;
    font-size: 14px;
    vertical-align: middle;
  }
}

And I still haven’t figure out the issue of it only being visible at the bottom (instead of "sticky) when there’s no replies.

The screenshots in the first post are quite old. You won’t find any information about the button which allows you to toggle between timeline and toc when there is more than one post, or information about the toc for replies feature, in them.

The problem with the missing button on mobile was reported here:

Maybe you also want to support this feature request: Fully expand table of content, if you’d prefer official support instead of custom CSS.

2 Likes

I was able to make it work when it doesn’t have a reply:

I just added my feedback on that topic. Thanks.

1 Like