This is an archived forum post. The information may be outdated. Contact us if you have any questions.

How to generate a table of contents

anthonycollini wrote on 2013-09-21:
What is the best way to generate a table of contents? I don't mind making in manually, but I need to know how to pull specific page numbers and then insert them into the toc using javscript. I know there is the %n variable that is exposed in the footer of each page, but how would you interact with that using javascript/jQuery?

I tried using css counters and pulling those with jquery, but still can't seem to populate it. Any working examples would be great. Thank you.
support wrote on 2013-09-22:
Hello,

Unfortunately, there is no easy way to accomplish this at the moment.