This feature worked fine in Views version 2 on Drupal 6. But now, the field always shows "Add new comment" even if the node has some published comments.

It used to show the number of published comments in the latter case.

Note: I have upgraded my Drupal 6 site to Drupal 7.

CommentFileSizeAuthor
#4 view_export.txt32.42 KBW.M.
#2 view_export.zip (txt file inside)3.38 KBW.M.

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

If you report an issue always try to help people to fix the issue.

Therefore for example provide a reusable export of a view.
As you read http://drupal.org/node/571990 (you really should have) this information is required.

W.M.’s picture

StatusFileSize
new3.38 KB

Here is a text file containing the exported data (zipped).

The problem is that the "Add new comment" always shows the linked text "Add new comments" instead of showing the number of comments if the node already has some comments posted and published.

merlinofchaos’s picture

1) Views does not contain a field called "Add new comment". grep shows that string does not appear within Views at all. Precisely what field are you referring to?

2) Please do not zip exports. If you simply attach the text file, I can click on it and read it. If you zip it, I have to download it, then unzip it. That is not a good use of my time.

W.M.’s picture

StatusFileSize
new32.42 KB

I am referring to this field:

Page view in Views for Drupal 7 -> Fields -> Add new -> Field name: Content: Add comment link.

This field has an option (under "More") named: Show teaser-style link.

Checking this option should make the field provide either the number of comments in post or "Add new comment" if there is no comments already posted.

Worked fine in Drupal 6.

Here is an export of the view (text file format).

esmerel’s picture

Status: Postponed (maintainer needs more info) » Active
dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Is the "add new comment" link shown for you on the default node listing provided by drupal core?
If no, views can't do anything here because it just uses the links provided with drupal.

W.M.’s picture

In Drupal's default teaser listing I can see two links:

a. Comment count as a link to the comments (if some posted already)

b. "Add new comment" text linked to comment form

In Views 2.x (Drupal 6) there was only one linked text: either a or b. The same link changed dependent on whether the node already had some posted comments or not.

I hope this clarifies the issue.

mototribe’s picture

+1

dawehner’s picture

Mh well it's kind of a problem as views just uses the links provided by the comment module so there is no real reason why it shouldn't work as it's designed.

This count-links only appears if you have configured to be a teaser.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
Starminder’s picture

Status: Closed (works as designed) » Active

Am also having this issue:

With the same user, some blogs display the comment count in the teaser, some do not.

  • Across content types, some display the count in the teaser, others do not.
  • Turned off fasttoggle, but that didn't change it.
  • Edited content types to no avail.
  • Rebuilt permissions
  • Cleared caches

Not sure what else to do - Some blogs, despite having comments, do not display the comment count in the teaser. Just looking for ideas...

Starminder’s picture

Status: Active » Closed (works as designed)

Found the fix for this:
http://drupal.org/node/1171568

silverwing’s picture

Closing comments due to spam.

silverwing’s picture

setting to full html due to spam