Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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:
http://drupal.org/node/136360
http://drupal.org/node/256218
Comments
Comment #1
dgtlmoon CreditAttribution: dgtlmoon commentedI just checked and I can confirm this in current 6.x code, I assume it's in the 7.x branch too
Comment #2
dgtlmoon CreditAttribution: dgtlmoon commented