phpdrupal-7commentsdrupal-themingdrupal-comments

How to render comments in Drupal 7


I have a template file node-contenttype.tpl.php. There I´m trying to print the comments of that node via

print render($content['comments']);

but only the comment form is rendered. So im looking into the comment-wrapper.tpl.php and the comment.tpl.php. When im writing something in the comment-wrapper.tpl.php, for example a little bit of dummy text, it is printed. But when im doing this in the comment.tpl.php, nothing happens.

Inside the comment-wrapper.tpl.php is the call

print render($content['comments']);

but no comment is rendered.

So the problem seems to bee that the comment.tpl.php is not called. I have find out that the comment Array in comment-wrapper.tpl.php is empty, too.

Can anybody help please?


Solution

  • It was a language problem. The language was set to "english", i have set to undefined and now the comments are rendered.

    But i have no idea why..