Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By vertazzar on
Why the views doesn't have the ability to filter the nodes only who have new comments -_-
there's only for Node:Has a new content
....
Is there a way to make views filter only nodes with new comments?
Comments
bump
bump
BUMP - Desperately need this
BUMP - Desperately need this filter, guys! :/ Any news?
Try this
You can use filter "Has new content" with a little modification.
Thank you thank you thank
Thank you thank you thank you.
BTW for D7 you should switch
BTW for D7 you should switch to
D7 code is not working for me...
I've created a module called "utm_mods" that includes only the following PHP code, and I'm still unable to get Views 3 to include comments in the "Has new content" filter. Not sure what I'm missing here, or even if I'm doing this quite right...
Any help wold be great...Thanks!
did you make any progress?
Hey JLeMosy,
did you manage toget this working in the end? I am after this functionality but I can't seem to get any response from my view. Would really apprecaite any help if you did suceed in the end or if anyone else knows what is wrong here?
One thing though is I don't want to replace new content filter I just want to add a new filter whih searched for nodes with new comments so I can use both simultaneously. Does anyone know if this still possible with this custom module approach?
Thanks
Antoine
Very simple way to do this...
Very simple way to do this....using module views php filter.
1. Add Content:Nid field to view
2. Add Views PHP filter to view.
3. Enter in the filter
return comment_num_new($data->nid) == 0;
That will return only rows with new comments.