Jump to content

Can anyone help automate table of contents creation from h2 blog post?


Recommended Posts

Posted

Hey,

Since you all are much smarter than me, I'd really appreciate your input on this task.

So, here's the deal: I've got a layout with two columns, a sidebar, and the main section. What I want to do is take the H2 headings from my blog post and turn them into a table of contents. That way, I can have a section on my sidebar that acts like a TOC. Sure, I could manually add those entries to the TOC field, but do you happen to know of a more automatic way to do it?

Cheers

Posted

Wouldn't it make more sense to put the H2 headings in a separate field? 

Would also be easier for the editor ? 

Posted
8 minutes ago, zoeck said:

Wouldn't it make more sense to put the H2 headings in a separate field? 

Would also be easier for the editor ? 

How would you do that?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...