Auto add <!--tableofcontents--> to content types.

cerup - June 30, 2009 - 06:23
Project:Table of Contents
Version:6.x-3.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:AlexisWilke
Status:closed
Description

I'm wondering how simple it would to auto add the table or the table syntax to certain content types.

I'm creating a wiki and i'd like each wiki content type to have this tag without making the user add it.

Currently I'm using a WYSIWYG editor and in order to add the you have to click 'html' add it and then go back to submit. It's unintuitive and most of my userbase probably wouldn't know how to add this.

Are there any simple ways either to auto add the table to a content type and/or make it usable in WYSIWYG editors.

Thanks!

#1

AlexisWilke - June 30, 2009 - 08:47
Assigned to:Anonymous» AlexisWilke

cerup,

Yes. I have FCKeditor and it is a problem for me too.

I'd like both functions:

(1) be able to automatically get a table of content, just like in Wiki, could the # of points and if over a threshold you setup, create a corresponding TOC.

(2) accept a tag of the form [toc ...] instead of a comment which is real hard to work with with WYSIWYG editors.

That being said, it would be better to have a button in the editor to be able to add the TOC, but that means programming such a button for each WYSIWYG editor which is crazy.

Thank you.
Alexis

P.S. you may want review & comment #351051: Support for [ and ] and a few other bug/problems fixes. and #353298: TOC in div with id?

#2

AlexisWilke - July 5, 2009 - 09:24
Version:6.x-2.2» 6.x-3.x-dev
Status:active» fixed

This is fixed in 3.x-dev. Auto + [toc ...]

Thank you.
Alexis Wilke

#3

System Message - July 19, 2009 - 09:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.