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

radune’s picture

That would be so useful - can someone please help us? (the php noobs?)

Thank you!
-Radu

deekayen’s picture

Status: Active » Closed (duplicate)