开发者

Only whole node in preview

开发者 https://www.devze.com 2023-02-02 19:20 出处:网络
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_tri

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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号