Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.1
Component:
comment data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2008 at 00:33 UTC
Updated:
28 Nov 2008 at 00:38 UTC
My understanding is that by selecting "Display node comments" in the "Row style options", the view will display the comments associated with each node. When I select this option however, no comments are displayed. When I view the html source of the view I see that <div id="comments"></div> </div>is printed under each node, but no comment information is being printed. I tried this on a clean install with the same results.
I am using the following settings:
Node View type
Style: Unformatted
Row style: Node
Row style options: Display node comments
SQL Query:
SELECT node.nid AS nid FROM node node
Exported View:
<?php
$view = new view;
$view->name = 'node_plus_comments';
$view->description = 'Lists nodes plus their comments';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
'teaser' => 0,
'links' => 0,
'comments' => 1,
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'nc');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));
?>
Comments
Comment #1
jcruz commentedComment #2
merlinofchaos commentedThis is now fixed in CVS.
Comment #4
Jonasvh commentedsubscribe