node:body field inserts entire node in view

mgrant - May 4, 2008 - 00:21
Project:Views
Version:5.x-1.6
Component:node data
Category:bug report
Priority:normal
Assigned:sun
Status:duplicate
Description

I updated the views module today to 5.x-1.6 and all of my views which included the node:body field from a cck node broke. Instead of displaying the text in the body field, it inserted a full node view.

I backed out to the old views module back to 5.x-1.5 and the problem disappeared.

More specifically, what I have is a cck type with a couple images, the title, and body. I created a view to display nodes of this type in a table. In the view, the fields I display are: the two images and node:body. What I get is a table with my two images plus a full-node view containing again my two images, title, body, and all the field names. If I delete the node:body from my view, I get only the two images. So it's pretty clear that the node:body is inserting the full node where it should only be inserting the body text.

I was running drupal 5.1, while trying to figure out what was wrong, I updated to 5.7 and the view problem persisted, so it does not appear to be related to the version of drupal itself.

I also updated the cck module from 5.x-1.4 to 5.x-1.7.

#1

sun - May 26, 2008 - 17:21
Title:node:body field inserts entire node in view» Node: Body outputs entire full node body instead of Body field
Assigned to:Anonymous» sun
Status:active» needs review

Same issue here. Attached patch fixes this by adding separate views field handlers for a node's plain body/teaser.

AttachmentSize
views-DRUPAL-5.node-body.patch 2.33 KB

#2

sun - May 26, 2008 - 17:22
Component:Code» node data

#3

sun - May 26, 2008 - 18:37
Title:Node: Body outputs entire full node body instead of Body field» node:body field inserts entire node in view
Status:needs review» duplicate

Marking as duplicate of #160641: Node: Body outputs entire full node body instead of Body field

 
 

Drupal is a registered trademark of Dries Buytaert.