Download & Extend

TOC diplayed in a block - only displayed headings from embedded node

Project:Table of Contents
Version:6.x-3.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

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.

#2

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.

#3

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

nobody click here