1

I would like to show full node including comments in views. Everything is ok if I choose display "page" but in case of "block" all comments disappear from the view only content and link "add comment". What is wrong in my case and how to correct it? I need a block with full node content including comments.

My parameters in views:

Format:
Format: Slideshow
Show: Content; All (I also cheked "show comments" and "show links")

Thanks in advance

  • Which module are you using for slideshow format ? – Anil Sagar Sep 12 '12 at 5:37
  • views slideshow – moto Sep 12 '12 at 5:47
1

When you select teaser view instead of full content you can see comments in your block.

If you see implementation of comment_node_view() comments are displayed only in node lading pages.

if ($node->comment && $view_mode == 'full' && node_is_page($node) && empty($node->in_preview)) {
  $node->content['comments'] = comment_node_page_additions($node);
}

If you enable the same block in node landing pages you can see the comments in your view.

If you enable the block other than node landing pages, then you cannot see the comments because of node_is_page($node) condition i think.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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