Posted by John Pitcairn on December 4, 2009 at 1:32am
3 followers
Jump to:
| Project: | Table of Contents |
| Version: | 6.x-3.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
I don't have the knowledge to help you with this, but I REALLY like that idea.
#2
Never mind, I decided to roll my own solution for generating the named anchors and TOC.
#3
John,
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
#4
Sorry, 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.
#5
There 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
#6
Just 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!)