Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 12:16 UTC
Updated:
26 Nov 2009 at 17:25 UTC
The problem is incorrect node_view() usage in node.views.inc. This patch resolves the issue for me.
| Comment | File | Size | Author |
|---|---|---|---|
| node.views_.inc_.fixed-node_view.patch | 940 bytes | James Andres |
Comments
Comment #1
merlinofchaos commented$page must be false unless you happen to be showing that node and only that node. Views is designed to show a list of nodes; setting $page to TRUE is actually incorrect. So your base assumptions seem to be incorrect.
Comment #2
merlinofchaos commentedIf $page is true you will get interesting side effects such as breadcrumb trails changed, titles changed and other things by various modules that utilize hook_nodeapi.
Comment #3
dawehnerI'm not really sure whether this is right. If you read the parameters
So we never display the node on the page, so it has to be always FALSE, or not?
Comment #4
James Andres commentedHmm, perhaps then instead of calling node_view(). The node_render(), theme('node') ..etc. should be called individually to ensure variables are set correctly at the theme layer.
Thoughts?
Comment #5
merlinofchaos commentedNo, node_view is definitely the right way to do it. In general, if you want an actual node view page, you should use a method that isn't Views to get it. Panels + Page Manager excels at this, for example.