I don't know how to create a patch, so I'm attaching a version of the toc.module which seems to work for Drupal 5.x

The only required change was to create a .info file so that the module would appear in the admin listings.

As an additional bit of functionality, I've made the output appear within a collapsible fieldset, so that you can hide it as you wish. It is currently set to default to 'collapsed'.

I hope this works for others.

CommentFileSizeAuthor
toc.module.zip2.36 KBgmak

Comments

moshe weitzman’s picture

Status: Active » Needs review

I can confirm that the .info file makes this module usable. I just put in a different patch to output TOC as a block so the fieldset part would no longer be needed.

I will commit this in a few days if maintainer doesn't because it has sat here for almost a month now. Hope thats OK.

I would prefer to make this TOC a separate module and not grouped into a misc module like "tweakbox".

Finally, thanks for this great module. I have wanted it for a long time. I use it along with markdown filter on groups.drupal.org to nice success.

acp’s picture

Btw,

since it is confirmed, feel free to commit the patch...

moshe weitzman’s picture

thanks acp. lets resolve my other outstanding issues and then branch for 5. just a few days more of conversation.

acp’s picture

Assigned: Unassigned » acp
Status: Needs review » Fixed

All modules are now compatible with drupal 5...

acp’s picture

Status: Fixed » Closed (fixed)