Sorry, but this is a real newbie question. I managed to install Drupal and a ton of modules and themes, but table of contents has me stumped.

So far, I can't get Table of Contents (http://drupal.org/project/tableofcontents) to show anything. I tried "<!--tableofcontents-->" and also "[toc list: ol; title: Table of Contents; minlevel: 2; maxlevel: 3; attachments: yes;]" and I don't understand enough about Drupal to know which I should use, or why both are documented, or if they are interchangeable. I did not spot any documentation on how filters work.

I also got very confused about "headinganchors" featuring so prominently in the documentation. There are forum postings on this topic, but I don't recognize which admin options they are talking about as none of the terms used match what is visible on the page.

I tried administer -> site configuration -> Input formats -> Table of Contents, under the rearrange tab, to put "Table of Contents" first or last.

No one has updated this since 2006 and I'm concerned bit-rot has set in and it no longer works.

This should be really easy. Can someone post some simple instructions (using the links and menu options actually shown on the Admin pages so I don't have to hunt and guess?) Thanks!

Comments

pier59’s picture

I have exactly the same problems !
I'm trying to implement a wiki (http://imagexmedia.com/blog/2008/6/corporate-manual-wiki-style) where this table of content should show. But no success, with the same trial and error than you, tpc1095.
DO not let us in the dark...

john.kenney’s picture

this module appears to be actively maintained, including issue queue. suggest you open a support request/issue there as they will be more familiar with the module.

the 2006 date is not the most recent activity -it is just the date that module home page was created. look more closely at all the other items and you will see much more recent dates.

pier59’s picture

I just posted an issue : http://drupal.org/node/660318
I can't wait for an answer to our woes.
P

AlexisWilke’s picture

Hmmm... looks like I missed your entry.

I have no clue why you had trouble with the TOC...

Now, there are two things that are necessary:

In the content, you want to write [toc] somewhere. This is where the table of content is included.

And the page needs to be composed of titles and paragraphs where the titles are defined between where # is a number from 1 through 6. The TOC setup will define what anchors are supported.

The headinganchors module is an old module that you should not be using (3.0 had it and it needs to be deleted.)

Thank you.
Alexis Wilke