Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.7
Component:
node data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 19:44 UTC
Updated:
20 Dec 2010 at 22:50 UTC
I am looking for such a field. I have found the "most recent comment date" and "most recent comment author" but can not find the one from this issue title.
I have tried the "comment: content" with grouping turned on but it does not return the most recent one (even with desc sorting on "comment: date" set). Also could not find the proper relationship.
Maybe there is a way to overcome it. I am trying to make a block with nodes ordered by "most recent comment date" - that was easy. I failed while trying to attach the most recent comment content.
Please help :)
Comments
Comment #1
merlinofchaos commentedDrupal does not contain a pointer to this comment by id, and therefore Views does not contain a feature to utilize it. It requires an annoyingly complex query to find the most recent node, and that query makes things that are normally straightforward suddenly not work.
Comment #2
Drewniacki commentedmerlinofchaos,
Thanks for explanation!
Comment #3
haleagar commentedalso trying to get this and I don't find anything.
No idea how to get it into the view query but in the view generated query replacing
LEFT JOIN dru_comments comments ON node.nid = comments.nidwith
LEFT JOIN dru_comments comments ON node.nid = comments.nid AND comments.timestamp = node_comment_statistics.last_comment_timestampgets you just what you want.
Comment #4
haleagar commentedoh I guess you need to be including the field Node: Last comment time in order to have the data to add that AND clause