Active
Project:
Table of Contents
Version:
6.x-3.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 22:03 UTC
Updated:
24 Oct 2010 at 05:53 UTC
We're noticing a possible bug (or quirk) when using TOC in combination with http://drupal.org/project/node_embed
If a [[TOC]] tag is place in the content, it appears correctly including those from an embedded node. However, if the module is also configured to show the TOC in a block, the block only contains headings from the embedded node, not from the "real" node.
Comments
Comment #1
AlexisWilke commentedWould you mind trying with InsertNode instead and see whether you get the same problem?
As far as I know, InsertNode has more capabilities than node_embed, although that was something I checked a while back... 8-)
If InsertNode works, then there's probably a problem with node_embed.
Comment #2
pwolanin commentedIt seems that the problem can be resolved by changing the tpl template for node_embed to remove the H2 tags it emits, so it's something about the relative hierarchy of header tags.
Comment #3
AlexisWilke commentedIt could be that your main page starts with H3 or H4 and then it goes to H2. That could cause a problem, I guess.... since it would generate a "broken" hierarchy. But you should still get what appears after the node insertion.
Alexis Wilke