Active
Project:
Table of Contents
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 01:32 UTC
Updated:
8 Mar 2010 at 08:33 UTC
I'd like to keep the use of the [toc] tag out of sight of my editors, who are likely to misuse it.
I was hoping I'd be able to add the tag in a separate admin-only field, and have it index the content of the body field.
Unfortunately it seems the tag must be in the same field as the content it will index, yes?
Comments
Comment #1
kscott22 commentedI don't have the knowledge to help you with this, but I REALLY like that idea.
Comment #2
johnpitcairn commentedNever mind, I decided to roll my own solution for generating the named anchors and TOC.
Comment #3
AlexisWilke commentedJohn,
May I ask you why you think this solution won't work?
I have been thinking about your idea, and it would be very easy to add a text field to enter the TOC parameters. I'd add a couple more: location (top or bottom) and active (on or off, so you can put the opposite of the default whatever that is.)
Thank you.
Alexis
Comment #4
johnpitcairn commentedSorry, I wasn't thinking it wouldn't work, I just needed to get it working quickly. Rather than attempting to familiarise myself with and patch or extend the toc module, I decided to roll my own solution, which took about an hour.
Comment #5
AlexisWilke commentedThere is now support for this feature. You still need the proper filter to be assigned to the node, but by default you can mark the filter as "not automatic" then let your users turn on the feature on the node directly (on a per node basis.)
I think we should look into having a complete setup in the node, but I'm not too sure that it is a good idea...
Thank you.
Alexis Wilke
Comment #6
AlexisWilke commentedJust in case, there is a version available in 3.4 that already does part of this. More or less, you do not need to setup a filter, instead of you can have the table of content turned on using a drop down. What is certainly still missing is a box to enter the options... (you can setup the format settings, then remove the filter from the format, and you will still have those as the default!)