Table of Contents not displaying
BeMathis - September 27, 2009 - 23:11
| Project: | Table of Contents |
| Version: | 6.x-3.1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Even though I have the module enabled and have followed all instructions in the README. Setup the input format and (i feel) I am using the input format correctly the table of contents will not display
Here is the content body
[toc title: Table of Contents;]
<h1>This is testing the toc</h1>
I am testing the TOC now. This is heading h1
<h1>Another Heading</h1>
Content..... And more content
More content
<h1>Yet another heading</h1>
Some more content
to fill
the heading content space
<h1>Finaly Heading</h1>
This is the content
for the
final
headingattached is a shot of the page that is generated
| Attachment | Size |
|---|---|
| Screen shot 2009-09-27 at 7.07.26 PM.png | 36.93 KB |

#1
By default the toc extracts H2 to H4. To change the default, go to your Input format and change the settings there.
To change it just for that page, add
<?phpminlevel: 1;
?>
to your [toc ...] definition.
#2
I have changed the min heading level in the Input Format->config
I even changed the h1 tags to h2 but still no toc.
Perhapse this is a theme problem? I am using Puixture theme. If anyone has any ideas for something I could look for in firebug please let me know. I have no ideas at this point.
#3
BeMathis,
Btw, if you look at the HTML source code of the page without the table of content, do you see anything that looks like an HTML tag generated by the [toc] filter?
The fact that the [toc] is removed from your screen means that the filter ran. The only other thing I could think of would be the number of header tags (H1) is too limited. Yet, that's tested only if you don't have an explicit [toc] in your node, which you have...
One last thing, the toc uses a template file. May that somehow you made a copy and changed things in it and that wiped out the necessary HTML tags... Unless, like you mentioned, the theme somehow prevents that template from being included?!?
Do you have a URL where I can download Pixture?
Thank you.
Alexis Wilke