Hello

I wanted not to get the teaser of the node, so I modified the code like this:

1. Find (around line 273) in headerimage.module

         // prepare block output
        if (!empty($nid)) {
          $node = node_load($nid);
          $node = node_prepare($node, true);  //use node teaser view

          // mimic node_view
          $node = node_build_content($node, true, false);
          $content = drupal_render($node->content);
          $node->teaser = $content;
          unset($node->body);
          node_invoke_nodeapi($node, 'alter', $teaser, $page);
          
          $block['content'] = theme('headerimage_block', $node);
        }
        return $block;
      }

2. Replace with

        // prepare block output
        if (!empty($nid)) {
          $node = node_load($nid);
          /*
           * Modified by Roman Koller
           * Using content mode instead of teaser mode
           */
          $node = node_prepare($node, false); 

          // mimic node_view
          $node = node_build_content($node, false, true);
          $content = drupal_render($node->content);
          $node->body = $content;
          unset($node->teaser);
          node_invoke_nodeapi($node, 'alter', $teaser, $page);
          
          $block['content'] = theme('headerimage_block', $node);
        }

3. Find in headerimage.module (around line 760)

  $output .= $node->teaser;

4. Replace with

  $output .= $node->teaser;

Now the whole images are print, not just the thumbnails.

I used version 5.x-1.x-dev downloaded on Sunday, 2. December 07.

Comments

sutharsan’s picture

Assigned: Unassigned » sutharsan

The way the images are displayed can be controlled for each content type. Path: admin/content/types/mynodetype/display
I consider to include an option for the admin to choose to display teaser or full nodes. One setting for all node types Header Images displays.

sutharsan’s picture

Status: Needs review » Fixed

The option to display the Header Image node in teaser view or full view is now added to the module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.