2 replies [Last post]
ron williams@drupal.org's picture
Offline
Joined: 06/28/2008
Juice: 10
Was this information Helpful?

I'm trying to output the content of the body (description) field. When using a file named node-product.tpl.php, I am able to insert <?php print $node->content['body']['#value'] ?> and get the field to output. I am using a block generate by views to output the buy now section of our product page also (see http://drupal.org/node/226032). I am trying a similar approach using node:body as the field to display, however, it display the entire body, not simply the text within the body field.

Any advice regarding displaying the body field only within a block is appreciated.

ron williams@drupal.org's picture
Offline
Joined: 06/28/2008
Juice: 10
Re: Product Description Block

Bump

mach5_kel's picture
Offline
Joined: 03/25/2008
Juice: 79
Body Only

Here, have a look at this. It might help you out.

http://drupal.org/node/110706