Only whole node in preview
Is it possibl开发者_如何学Ce to show only the whole node when clicking on "Preview", not also the teaser?
You can override theme_node_preview in your theme, to remove the code related to $preview_trimmed_version. More specifically, add the following code to the template.php file in your theme.
function phptemplate_node_preview($node) {
$output = '<div class="preview">';
$output .= node_view($node, 0, FALSE, 0);
$output .= "</div>\n";
return $output;
}
精彩评论