Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
user data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2010 at 21:31 UTC
Updated:
22 Feb 2010 at 07:30 UTC
I've got a view that lists users. I would like to be able to say "14 articles" next to a users name who has created 14 nodes of content type "article". I can figure this out with some preprocessing functions, but I was wondering if there was a way to do this sort of thing within Views.
Comments
Comment #1
dawehnerDid you tryed out adding the user: name field as argument and select summary ?
Comment #2
sammyman commentedI want to do this too.
Comment #3
dawehnerThats a incredible easy one
Comment #4
sammyman commentedThats cool. How do you implement this? Or am I supposed to create a new views with this info? Or can I cut an paste this info somewhere.
Thanks
Comment #5
dagmarYou can import this view from /admin/build/views/import
Comment #6
mattgilbert commentedThis is great, thanks! Understanding Views has been quite a challenge for me, and examples like this make all difference. Using a Node view rather than a User view is something I probably never would have thought of, since this is essentially a list of users I'm after.
Is there a way to show not just the number of all posts, but the number of 2 or more types of posts? So something like:
User Name
4 articles
10 blog posts
Comment #7
dawehnerYou could solve this via