Table of Contents

Can I jump in here? I would like to use a ToC block, but only for long blogposts (actually just 1 post, so I am tempted to just do it manually in HTML inside a textarea, but once you have a tool you actually need it more often, so maybe a block would be nice).

So, could you elaborate on what you said here?

  • Where do I filter the blocks by type? And probably: How do I filter them?
  • I have the headings block already extended with an ID field. Is that enough for the anchors (I guess so)
  • You say I need a snippet to output the ToC, but don’t you mean a “block”, not a snippet? I mean I have to insert that ToC on the page and how would a snippet do that when you don’t need a ToC on every blogpost, but just long ones?