Download & Extend

Modified version to replace teaser with a cck field.

Project:Similar entries
Version:5.x-2.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

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

Thank you!
-Radu

#2

Status:active» closed (duplicate)

#73084: Support new fields in Drupal core

nobody click here