Drupal pull body only page content

1
2
<?php if (! isset($node)){?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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.