


how can I create table of content of a page which has H2, H3,, H4.
I want al heading level to appear in TOC.
Views
Replies
Sign in to like this content
Total Likes
There are many ways to implement your required, but here's what you can try.
The page will only be constructed with the section-container component. While the TOC component sites on top of the section-container component.
JCR View:
/content/my-site/page/jcr:content/par/toccomponent
/content/my-site/page/jcr:content/par/sectioncontainercomponent0
/content/my-site/page/jcr:content/par/sectioncontainercomponent1
/content/my-site/page/jcr:content/par/sectioncontainercomponent2
/content/my-site/page/jcr:content/par/sectioncontainercomponent3
Views
Replies
Sign in to like this content
Total Likes