Jump to content
OllieMackJames

TOC - how can I get one on page?

Recommended Posts

I am trying to get a Table of content that will display - wikipedia style - all different headers on one page in a table.

I need the TOC to automatically run down the page and pick the H2, H3 and H4 headers and put them in the TOC, with the link to those headers right in the TOC.

Anybody know how to do this?

Thnks!

Share this post


Link to post
Share on other sites

I could have sworn that i've once seen something like this floating around the forum. I think it was a textformatter that autmates toc and is used on the PW sites for blog posts and such. Can't find it though :(

Share this post


Link to post
Share on other sites

Well if a jQuery solution is OK to you here's one.

  • Like 2

Share this post


Link to post
Share on other sites
29 minutes ago, SiNNuT said:

I could have sworn that i've once seen something like this floating around the forum. I think it was a textformatter that autmates toc and is used on the PW sites for blog posts and such. Can't find it though :(

There's this one...which you contributed to :)....

 

  • Like 2

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...