Exclude items before {toc} is triggered

More
7 months 2 weeks ago - 7 months 2 weeks ago #76279 by Londinium
Hi,

I wonder if it is possible to exclude an H from being TOCed.
My title is H1, my intro text is H2, and my first subheadings are H3 and H4.
I want to give the TOC index list the H3 subheading name "Table of Contents."

However, the {toc} is including that Table of Contents as part of the index, even when I put the {toc} after the <h3>Table of Contents</h3>.

Is there a way to make it trigger the plugin only after {toc} is called?

That would be useful.

Thank you,

Cheers,

Londinium
Last edit: 7 months 2 weeks ago by Londinium.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #76291 by ced1870
Hi
You can use the excluded classes options:
www.joomlack.fr/en/documentation/table-o...o-use-the-exclusions

and add this class (no matter which class name you want to use) on the headings that you don't want to be listed in the TOC

CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 782 guests and no members online