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

AlexisWilke’s picture

Would 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.

pwolanin’s picture

It 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.

AlexisWilke’s picture

It 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