If I add a field "Content: New comments" it displays the number of new comments for a given row (or nothing is there are no new comments). If I check "Rewrite the output of this field" and put something like "[new_comments] new comments" then this field is displayed as "New comments new comments".

Is this the intended behavior?

Comments

dig1’s picture

Status: Active » Fixed

Hi, I am using:
Drupal core 7.12+167-dev (2012-Apr-12),
Chaos tool suite (ctools) 7.x-1.0+10-dev (2012-Apr-04)
Views 7.x-3.3+91-dev (2012-Apr-10)
+ various other mods

I can't replicate this problem. My tests have delivered the expected results as follows:

I did the following:
1) In Firefox I installed the above
2) created an article
3) added 2 comments
4) created a view with field Title, and for testing I added all the fields related to 'comment' (Comment count:, Comment status:, Add comment link:, Add new comment, Comment count:, Comment status:, Last comment author:, Last comment time:, Last comment uid:, New comments: , Updated/commented date: ).
5) The fields all showed the details I expected to see. In order to get a number showing for 'New comments:' I used a different browser (Chrome) and logged in as a different user. That worked, it displayed the number of new comments for a given article (or nothing is there were no new comments).
6) I then checked "Rewrite the output of this field" and entered "[new_comments] new comments". When I added a comment in Firefox as one user and then published the view in another browser as a second user " 1 new comments". So this worked.

However, I did initially have a problem when nothing worked as expected in this test and I resolved that by clearing all caches in the database and logging out and logging in again for both users. That problem has not subsequently reappeared.

So I think this issue has been solved by newer software releases.

Cheers

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

silverwing’s picture

Issue summary: View changes

typo