Project:Content Templates (Contemplate)
Version:master
Component:Code
Category:feature request
Priority:critical
Assigned:dgtlmoon
Status:active

Issue Summary

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

#1

Version:5.x-2.02» master
Assigned to:Anonymous» dgtlmoon

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

#2

Category:bug report» feature request
nobody click here