Table of contents not displaying links with CMS rich text

Hey there, My client has over 300 poems and want to display them on his site. I implemented the TOC attribute along with the CMS load infinite attribute but the TOC is not displaying at all? I’ve tried everything including starting over from scratch.

Here is the preview link

Here is my live link

Hey @art! I’m afraid the setup will not work as you expect.

I gather that you’d like to create a Table of Contents so that the user can scroll directly to the item containing the poem they want to read, however, the Table of Contents Attribute will not work as it is built for individual rich text elements.

You would have to build your own Table of Contents script to add the needed id to the elements and populate the table with the corresponding links to each item.

So I cannot use CMS I have to create one rich text component with all my poems for it to work?

Correct @art, a giant Rich Text with all the poems will generate a single Table of Contents.