It utilises a Floating Group to hold the Table of Contents. And a left Group to hold body in place. When the page size <= 768 they both collapse and are hidden.
Will you add X feature?
I made it for my requirements - contact me in the forum @lindsay_knowcode I like to get suggestions for enhancements - I make the plugins for my personal requirements, I don't know yours - tell me 🙂
In a near release I will add the options to style the ToC. But I personally don't need that for now.
Something not working as expected?
Contact me in the forum @lindsay_knowcode I like to get suggestions for enhancements - I make the plugins for my personal requirements.
I'm using a Floating Group header - how do I set the scroll offset?
See the property of the Plugin called "Heading Offset" - it defaults to 0 but put in the height of your heading if you have one. This page has a floating group header that is 67 high for example.
My menu is too long to fit on a page
One approach to solve this is to allow the menu to scroll within a Group
What about Responsiveness?
That is something you need to work out with the design of your Bubble page. Maybe you want to hide the Table of Contents, or fix the Table of Content at the top of the page. A Table of Contents is always going to need some width.
I hide the Table of Contents on small devices.
Does it help with SEO?
Absolutely! A table of contents is considered good practice for improving your SEO.
This Plugin sets (and overwrites) any element Id's of H1 .. H6 tags
If you rely on putting Id's onto H1 to H6 text elements - be warned - this plugin automatically gives a dynamically generated id. It needs to do this to create internal page anchors to scroll to.
Rich Text Edited Content
If you have rich text on your page does it work? Yes but you need to put some things into your workflows so that the ToC is refreshed after the page is fully loaded, and if you want to dynamically change the ToC as the contents of the page changes.
Here is the rendered Rich Text Content
What to put in your workflows if you have content rendered after page load.
In this example app you will see that the Rich Text Content is reset on every page load. Accordingly there is a ToC refresh. You probably don't need this - this app does needs it because of the way it is resetting the Rich Text content on every page load.
You probably don't need a refresh button - but here is an example of how you would manually refresh the ToC.
Use cases
I needed it to summarise a lengthy plugin page. I organise things into sections already so generating content from H1, H2 H3 tags works well for the way organise content.
Trouble shooting
Dynamic content headings are not being detected.
The plugin works by scanning the page for H1, H2 etc headings.
If your content does not contain heading tags then the plugin will not detect these headings. Some Rich Text Editors may not put in the Heading tags.
I needed it! and I couldn't find any plugin that did it.
Why not make it a free plugin?
There are already too many half baked, unsupported plugins. Purchase of the plugin comes with reasonable support to get you up and running.
If you are a Good Person and doing Good Things and deserve charity I may offer you a free license. Get in touch.