# \[DONE\] Table of Contents block or other function

**URL:** <https://community.fibery.io/t/done-table-of-contents-block-or-other-function/2235>\
**Category:** Ideas & Features\
**Tags:** blocks, rich-text\
**Created:** [November 20, 2021, 6:38pm UTC](https://community.fibery.io/t/done-table-of-contents-block-or-other-function/2235 "2021-11-20T18:38:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Oshyan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oshyan/32/11431_2.png) [@Oshyan](https://community.fibery.io/u/Oshyan)\
**Post date:** [November 20, 2021, 6:38pm UTC](https://community.fibery.io/t/done-table-of-contents-block-or-other-function/2235/1 "2021-11-20T18:38:27Z")

</div>

I was surprised to not find an existing feature request for this one, but I did search a bit and only found brief mentions in otherwise unrelated discussions. So the request is simple: some kind of Table of Contents feature, for docs, certainly, but perhaps even just overall for Rich Text. Maybe even as a kind of Block in the upcoming [[IN DEV] Migrate Entity View to Blocks](https://community.fibery.io/t/in-dev-migrate-entity-view-to-blocks/2005) paradigm.

Personally, though, I’d love to see it as something that can optionally “float” or exist outside/alongside the main contents. Not so much as a traditional book-style ToC, as-in a Word doc, but rather as a navigation aid. That said, depending on how flexible Blocks can be, an option _in_ a ToC block to simply “dock and float right/left on scroll” would satisfy that need very well.

If I were to outline my _perfect_ ToC functions, it would look something like the following, though I realize some of these may be a big ask, or too much work to do for the context in Fibery (which is not intended to be a sophisticated doc editor, I think; more about getting work done).

## Ideal ToC

- Block-based, can be instantiated anywhere in a Doc or Rich Text
- Collapsible
- Ability to configure what header levels it shows
- Optional collapsible headers, possibly with a “Collapsed by default” and/or “Only one header expanded at a time” options
- Click to navigate to headers with a click
- Option to display alongside doc contents somehow
  - Ideally the ability to “float” and scroll with the user’s view as a navigation aide

Using the ToC for navigation and having clickable header links suggests that this would rely on/require implementation of Anchor Links. Or at the least that adding Anchor Link functions would follow well from having clickable nav from a ToC.

**Anyone else want something in a ToC feature that I missed?** I made this post a Wiki, so feel free to edit and add your own bullets for additional desired ToC-specific features.

---

_[View the full topic](https://community.fibery.io/t/done-table-of-contents-block-or-other-function/2235)._
