Active
Project:
Content Templates (Contemplate)
Version:
master
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
4 Sep 2008 at 01:04 UTC
Updated:
15 Sep 2011 at 00:09 UTC
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 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 commented