Drupal pull body only page content

<?php if (! isset($node)){?> <?php print render($page['content']); ?> <?php } else{ ?> <?php print render(field_view_field('node', $node, 'body')); ?> <?php }?>
Not sure about the line endings on this one. This will render only the body. If you are using other fields on a page it will render them in the content. This way I can use those fields elsewhere on the page and only render the body copy.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.