Download & Extend

View Title Not Respected

Project:Node Comments
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I've noticed that the title of the nodecomment view used to display comments is not respected. Regardless of what the "title" is set to for any of the view displays (including the title for the argument), it will still only show "Comments".

This is bad because people are using this module to create node types other than "comments". It would be much better if Node Comment used the title of the view when displaying the view on the node commented on.

Comments

#1

I have the same issue and would be curious to see a solution for that

#2

Ok, I checked it out. It actually doesn't lie in the hands of the module, it's part of the template. Check out the file "comment-wrapper.tpl.php" in your theme folder and look for:

  <h2 class="comments">
      <?php print format_plural($node->comment_count, '1 comment', '@count comments'); ?>
  </h2>

Replace the terms 'comment' and 'comments' with whatever you need. The only problem is that this changes the behavior for all comments.

#3

Actually, I don't think that string is related to my original post. My original post is about the view title. It says "comments" above all the node-comments.

#4

I've same problem. Did somebody solve it ?
#2 doesn't work for me.

#5

Version:6.x-2.0-beta6» 6.x-3.x-dev

I think we may solve this in 3.x

nobody click here