Hi,

I used this module in D5 perfectly, and nodecomments had populated several fields in View.
But in D6 and Views 2, I could not see any fileds for nodecomments. Am I missing anything here?

Comments

msabnis’s picture

ok, changed the group name from 'Node' to 'Node_comments', i like it that way.
Also, seemed like few fields that were present in D5 are not available in D6.

Had to patch to create join for node_comment_statistics and added field for comment_count, the field i was looking for.

Anybody interested, heres the code:

$data['node_comment_statistics']['table']['join']['node'] = array(
		// node_comments links to node

			'left_field' => 'nid',
			'field' => 'nid',
		
	);
	

  $data['node_comment_statistics']['comment_count'] = array(
    'title' => t('Comment count'),
    'help' => t('Comment count.'),
      'field' => array(
    'handler' => 'views_handler_field',
    'click sortable' => TRUE,
  ),
  );

msabnis’s picture

Status: Active » Closed (fixed)

closing this

BuyBub.com’s picture

I cannot see any reference to nodecomments in any of the Views' fields. I configured the content type for nodecomments to use specified View, but I cannot see any option in Views where I can match a node with their nodecomments. This results in all nodecomments being displayed alongside all nodes.

What is wrong here?

mohammed j. razem’s picture

Im having the same problem here....
does using a default php argument solve this? or is there an easier way to display related comment in a view?

sniurkst’s picture

Same problem here, but I think this has something to do with it:

"Please note that the DRUPAL-6 branch has not yet been updated to work with Views RC2 yet."

So we should wait for update..

sirkitree’s picture

DRUPAL-6 Branch has been updated to work with Views RC3. see #314565: Update D6 branch to work with View2 RC3