I'm trying to modify the include teaser to include a cck field.
if ($teaser) {
$items[] = '<div class="similar-title">'.
l($content->title,
'node/'.$node->nid,
variable_get('similar_rel_nofollow', 0) ? array('rel' => 'nofollow') : NULL,
NULL,
NULL,
NULL,
true
) .
'</div><div class="simlar-teaser">'. check_markup($content->teaser, $content->format, false) .'</div>';
} else {
You codded: check_markup($content->teaser, $content->format, false)
I tried to change to check_markup($node->field_story_subtitle[0]['view'], $content->format, false)
or to
check_markup($content->field_story_subtitle[0]['view'], $content->format, false)
and nothing works. In php I'm a little noob.
Any ideas ?
Comments
Comment #1
radune commentedThat would be so useful - can someone please help us? (the php noobs?)
Thank you!
-Radu
Comment #2
deekayen commented#73084: Support new fields in Drupal core