Closed (fixed)
Project:
Header image
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Dec 2007 at 12:10 UTC
Updated:
27 Dec 2007 at 12:21 UTC
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
Comment #1
sutharsan commentedThe 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.
Comment #2
sutharsan commentedThe option to display the Header Image node in teaser view or full view is now added to the module.
Comment #3
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.