3

Am using views to display the comments below my node types in drupal 7.

The view works fine but i can't find a way to hide the regular drupal comments above the form.

How do i just display the comment form and the comments using views.

0

1 Answer 1

1

In node.tpl

    hide($content['comments']);

This hides both the comment form and the comments.

To render the comment form alone use

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

Then you can create your view for them nice comments and display them below the form.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.