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

<?php
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

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

Category:bug» feature