Hi!

Would it be possible to show the H? tags in the ToC, with the ToC in the teaser but all the headers outside the teaser?
In essence, you could then have a ToC as your teaser, and the links in the ToC will refer to that specific section in the full node.

Perhaps this could be done by forcing ToC to always read the full node instead of checking the current page for H? tags?

Cheers

/Danai

Comments

deviantintegral’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
deviantintegral’s picture

Status: Active » Closed (works as designed)

Just to follow up on this: There is no way for an input filter hook to know anything about a node, or the state of the text it's being passed. It doesn't even know if the text is a teaser or the full body. As well, the input filter can be on more than just a node; it might be a Views header / footer, or a block, or something provided by another module that allows input filtering. So, I'm marking this as "by design", though if someone knows a way around this that preserves compatibility with non-nodes I'd be glad to know :)

--Andrew