The variable $node->teaser is available for teaser and RSS but not the body. Can we please have it available?

print $teaser = substr($node->content['body']['#value'], 0, 220)

I'm using the code above right now but it still doesn't help as teasers have variable length.

It's been requested a lot in the past:


dgtlmoon’s picture

Version: 5.x-2.02 » master
Assigned: Unassigned » dgtlmoon

I just checked and I can confirm this in current 6.x code, I assume it's in the 7.x branch too

dgtlmoon’s picture

Category: bug » feature