How to improve the default user list using Views in Drupal7
by Joaquin Lippincott, President & Founder
Taking the time to make the Drupal admin friendlier is rarely on the top list of priorities for clients. That said, as service providers we know the long term grief ignoring the admin can cause for administrators. You've heard it before: "How did I do that again?", "Man, I wish this were easier!"
One of the places that you can easily improve the experience is in the user administrative section. Users are really just usernames and roles, but how do you get a better view of the data and make it easier to manage? Creating a custom View with exposed filters is a great first step. Here's a side-by-side comparison of the default user management screen and a custom View I created in about 15 minutes of work:


Pretty neat, eh? Not only do we have avatar photos being displayed but we also have leveraged views for:
- More user information (First Name, Last Name, etc)
- Dynamic sorting (just click the table header)
- An add user link at the top and the bottom of the list.
- Pagination at whatever point we want it.
Since this is a simple View, we haven't done anything to enable to bulk blocking, etc of users so we also include a link to the default user admin. Another thing that you may notice is missing that could be easily added are exposed filters. As of writing this article this feature was busted in Views and Drupal 7, but would be a great and easy addition to a Drupal 6 site you wanted to trick out this way.
Here's a snapshot of the View settings that I used:
I know other people have at least dabbled in this area, so I'd love to hear/see your recipes as well!

Comments
Add an Edit link?
Posted by Scott Vandehey on . [Reply]
I like it, but can we add an "edit" link to the view?
Edit Link - DONE
Posted by Joaquin Lippincott on . [Reply]
Great idea, Scott! I just added an edit link by adding another field in the View (to edit). It took about 2 minutes.
Views Link Area
Posted by Andrew Macpherson on . [Reply]
Views Link Area is a better way to put a link in the views header, as it runs it through Drupal's l() function. It's for Views 6.x-3.x at present, but hopefully it'll be ported to D7 soon enough.
UberToad!
Posted by Boris Mann on . [Reply]
Please 1. make this a feature 2. make an UberToad distribution that includes all your cool default hacks / features.
Simple but great
Posted by ApolloNet on . [Reply]
Exactly what a client asked last week. Thanks.
admin_views
Posted by sun on . [Reply]
The Administration views module contained and shipped with the http://drupal.org/project/admin_menu package has very similar goals.
Mod parent up!
Posted by Joaquin Lippincott on . [Reply]
Agreed. The Administration Views module is one of the best ones out there. Make for much better Drupal administration.
I created users list in views
Posted by paeng on . [Reply]
I created users list in views, but i don't know where i can find the link of it.
sorry, i'm just beginner in drupal hope someone can help me.
Add new comment