Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2007 at 19:16 UTC
Updated:
30 Nov 2007 at 17:34 UTC
Views outputs the $node->body field instead of $node->content['body'] and it doesnt call hook_nodeapi('alter'). This only happens for list_view and table_view, because views replaces node_view() with its own function (views_handler_field_body()) in this case.
The patch add the missing pieces and is a simple copy-and-paste from node.module to views_node.inc.
| Comment | File | Size | Author |
|---|---|---|---|
| views_node_output.patch | 985 bytes | profix898 |
Comments
Comment #1
merlinofchaos commentedApplied to -dev. Thanks!
Comment #2
(not verified) commentedComment #3
plj commentedThis patch breaks one of my views for some odd reason. I have two views “etusivun_avaus” (avaus) and “etusivun_kolumni” (kolumni):
Of these two, “kolumni” always works but “avaus” only works if I reverse profix898's patch. Otherwise it's teaser is not shown at all, although it should be.
The only practical difference with these two views is their “taxonomy: terms of” filter. “Avaus” belongs to term of vocabulary, which is reserved for our blog posts, and “kolumni” belongs to term of vocabulary that is reserved for stories (nodes shown in “avaus” are thus naturally blog posts and nodes shown in “kolumni” are stories).
Something isn't right here. But what?
Comment #4
merlinofchaos commentedSince this patch is already in and released, changing this to 'patch (code needs work)' is confusing. Instead, file a new issue and reference this. Thanks.
Comment #5
seanrWas a new issue ever created for this? I'm experiencing this bug too now. Seems to affect only blog posts.