Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Exclude items before {toc} is triggered

More
8 months 5 days ago - 8 months 5 days 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: 8 months 5 days ago by Londinium.

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

More
8 months 5 days 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.177 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 643 guests and no members online