I've been trying to figure out how to get Nodecomments to display for a few days now and can't seem to figure it out.

I know I'm supposed to use the Nodecomments View to view it, but what URL should I go to to see it? Or how should I call that View from within node.tpl.php? Or how can I pass it through Panels to display that View?

My two content types are "Comments" and "Concerns", both of which have their comment-types set to "node comments", but still I don't know how to get them to show up anywhere.

Any help would be greatly appreciated.

Comments

webviper’s picture

Nodecomments display automatically when you choose to use them for a certain node type. You dont have to use the nodecomment view yourself, once you enable nodecomments it uses hook_menu_alter to change the rendering function for nodes to automatically use the nodecomment view for comments (instead of the regular comment rendering procedure).

For example -
1 Enable nodecomment module
2 Set the Page 'Node type for comments' variable to to 'Comment'
3 Set the Comment 'Node type for comments' variable to 'Comment'

Now any Page node you go to will display the comments as a view (made up of nodecomments). Inspect the comments with firebug and you will see they are actually nodes.

suffering drupal’s picture

Hi, I had the same problem, did what you say, but comments still do not appear.

suffering drupal’s picture

Problem is solved. Don't really know why, but I cleaned up the content of the tryout-site, kind of started over and now the comments do appear.

Several other problems though:
1 - teaser-break doesn't work, which would be wonderful to avoid massification below the content (besides the comments show up between the main content and the corresponding map, which seems to be always at the foot of the content.
2 - collapse does not work, but I believe that is a core comment problem
3 - unable to asign Gallery Assist behaviour (http://drupal.org/project/gallery_assist), which does work with normal nodes. Suppose this has to do with the "rendering function" you mention webviper. Could you give a clue about where to start for trying to change this rendering?

If this could be made to work this module would turn from just comments, to authentic Subpages through user input!! Which I believe would be a real contribution.

crea’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.