I created a page including the <!--tableofcontents--> tag and an input format including the filters Headings to Anchors and Table of Contents: Full HTML + TOC. While previewing the page, I noticed that the right sidebar disappeared, it actually was pushed below the content and was taking the full width of the page. I then submitted the page and the problem was still present. I removed the tag and chose the Full HTML input format and the right sidepar appeared where it should be. I then tried to just change the input format to Full HTML + TOC and the same problem came back.

I took screenshot of different stages of the problem.

Comments

deviantintegral’s picture

You're using Zen classic? Made any modifications?

Does the page validate as HTML, or is something being generated by the ToC module which is breaking things? I fixed a couple of bugs in the -dev version which might make a difference, specifically with nested lists and a misunderstanding I had of the html spec.

Thanks,
--Andrew

deviantintegral’s picture

Status: Active » Postponed (maintainer needs more info)
dynv’s picture

As shown in the screenshots, the page works as expected as long as the the TOC filter input format isn't selected.

The site use a very slight modification of zen classic, I doubt this would cause the problem.

dynv’s picture

Version: 5.x-2.0 » 5.x-2.1

Problem persist ...

Also using standard Zen Classic doesn't help as I thought.

deviantintegral’s picture

I went to the URL in your screenshots (http://william.waglo.com/en/page/resume-r-c-fortin), and using Firebug I deleted the table of contents from my local copy. The sidebar is still pushed down, leading me to believe the issue is not actually b/c of the TOC. I noticed a bunch of your content is outside of the "content" div, perhaps you have a misclosed div somewhere? It might still be something placed there by the module, so let me know what you find.

--Andrew

dynv’s picture

As stated in my previous post on the second line : Also using standard Zen Classic doesn't help as I thought.

Not only did I try it with a different theme but with a different server and the problem persist.

deviantintegral’s picture

Perhaps the problem is somewhere in the actual content of the page. Does it still happen in the simplest of cases?

I tested Drupal 5.7 / Zen 1.1 with some content and couldn't replicate the issue.

--Andrew

dynv’s picture

StatusFileSize
new87.01 KB

I did another page ( http://william.waglo.com/en/page/simple-toc-page ) with less items and this problem didn't occur but another one took place ... <h1>1</h1> seem to have disappeared from the TOC !

deviantintegral’s picture

You need to set a minlevel attribute: by default, it starts at h2 since h1 is the site title.

<!--tableofcontents minlevel: 1;-->

--Andrew

dynv’s picture

Ok.

Will you address the page which is pushed down ? It's valid HTML ...

deviantintegral’s picture

Actually, I currently get 12 errors on your resumé page. Perhaps it's because you have a paragraph tag before the table of contents div?

--Andrew

deviantintegral’s picture

Priority: Critical » Minor
dynv’s picture

As you could've seen on http://william.waglo.com/en/page/simple-toc-page#sourceoftheproblematicpage it's not the case.

I'll correct the HTML then let you know.

deviantintegral’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No update in quite a while - if you have more information, feel free to post it.

Thanks,
--Andrew