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.
Hi all,
I'm looking for a way to make a view with a list of nodes. Within that view I would like to show a count of comments (statusupdates) per node.
Anyone an idea / best way?
Thanks in advance.
NdH
Comments
Comment #1
IceCreamYou CreditAttribution: IceCreamYou commentedThis is not currently possible, but I suppose we could add it.
Comment #2
IceCreamYou CreditAttribution: IceCreamYou commentedPostponing until after 7.x-1.0.
Comment #3
TheJoker CreditAttribution: TheJoker commentedStatuses beautiful module. But this is a very hot topic. Who needs the functionality of Twitter as a minimum. I think many would like to see the total number of statuses.
Comment #4
delacosta456 CreditAttribution: delacosta456 commentedhi yes this would be nice , but is it possible to have this with views aggregations and embed it ?
Comment #5
delacosta456 CreditAttribution: delacosta456 commentedYes Below could be a workaround for anyone in need
1 - If don't want to use code for embedding the view, download and enable this module Views Field View
2 - Clone the block display in the provided "Status All" by Statuses module (other's views, conversation et contextual didn't work for me)
3 - Add Recipient ID as contextual Filter to your new Block display
4- Enable Use aggregation in the display
5- In fields, Uncheck
Exclude from display
for the Status ID6 -Click on Aggreation settings of the above's step field (status id) and set it to "COUNT"
7 - Delete all the remaining field
8 - IMPORTANT, Delete the Sort Criteria in sort section
9 - Save
11 - On your status view's block add a new field of type Global View (Provided by the module you enable in step 1) and save
Note : Instead of using the Views Field View module you can also add and "Attachment" displays and attach it to your status view
Hope i didn't omit any step and that it would help