i created a teasercontemplate for a contentype, when i use views to show the content of this contenttype everything is fine.
But when use the the following php/snippet

$article = node_load(3);
$preview = $article->teaser;
print $preview;

to show the teaser of the contents, the contemplate for the teaser is not used.

What can i do

greetings, jonas

Comments

jonas28’s picture

Status: Active » Closed (fixed)

i solved this problem:

$output = node_view(node_load(3), 1);
return $output;