I'm currently working on an Intranet for my company and the member list seems to be a very good option for creating a directory.
I really appreciate the simple way that it displays the user information in a table (with sort option, restriction by role), but, to be able to really work as a directory I'll need to add some more features and would like to get your opinion on them:
1/ more filters:
Filtering by roles works fine for displaying members list where role is a descriptive function for members like moderator, authors...
In my case I'd like to manage a user directory and role is not enough to describe them unless I start added a bunch of roles. Profile are very usefull in this case. I can set a profile field for country, branch, department...
So I think it would be very usefull to add support for such filtering and especially if I can combine profile fields.
Ex: I'd like to see all Sales people from the NY branch or all IT from Canada etc...
I think it's possible to add variables in the URL like &fid=2|IT,3|Canada
of course this would work for "list selection" fields.
2/ search:
A big missing from profile module is the ability to search users profile fields. This of course affect members module. There's a bunch of patch for profile and also a module ProfilePlus but nothing is really working well.
I don't currently know how to deal with this. Adding a module like ProfilePlus is not very dificult but it means that search results (for users) will be displayed as normal drupal search and I'm not very fond of. I'd prefer members display. But this imply creating custom theme for this and as for today I didn't have a clue on how to achieve this (and not so much time).
Any thoughs ?
Now I think I'll work on 1/ but I'd like to gather some opinions on this.
I saw the patch to easily display role to restrict members #114466 but I'm not very convinced by the way of achieving this. Role selection through the URL is a great thing, but displaying role like this should be a theming option.
It's the same thing for my first point. I think I'll make it only available through the URL and then it'll be up to the webmaster to set it up (at least at the beginning). I though on making profile fields clickable (overloading the current clickable option) but I'm not sure if it'll be a good UI/idea.
For the search, well if you have any ideas on it... They're welcome.
Also I think I don't want to create another "user management" module, there's too many at this time.
Comment | File | Size | Author |
---|---|---|---|
#3 | members_fields_restrict.patch | 3.14 KB | tostinni |
Comments
Comment #1
Junyor CreditAttribution: Junyor commentedFilter by profile is often requested: http://drupal.org/node/21920. I'm sure others would appreciate this, too.
Regarding search results, are you saying that you'd like the results to be displayed in a tabular format, like members.module uses?
Comment #2
tostinni CreditAttribution: tostinni commentedFor the search results, yes, I think that if we are managing a directory, looking for all "James" should display a tabular list to keep the visual that members offer.
Also if search would be able to provide options to easily find all James from Canada, that would be better...
But is it very usefull to have a lot of selection fields ? Wouldn't this cluttered the UI ?
Maybe search would be smart enough to browse all fields and find alone James from Canada ?
Comment #3
tostinni CreditAttribution: tostinni commentedHere we go for my 1/
There's no UI, it just work passing arguments to the URL.
Example:
If you have a profile_field which fid is 1 and stands for your department (in a company), you can select all members from the IT department like this
members&fid=1|IT
If fid=2 is your country field, you can have all IT in the USA like this
members&fid=1|IT,2|USA
etc..Of course you're seriously advised to use
drupal_urlencode
when creating links.FYI, the patch is against the 5.x module available at Wim Mostrey's home.
Comment #4
wmostrey CreditAttribution: wmostrey commentedIn an effort to make the Members module for user listings what Views is for node listings:
Comment #5
wmostrey CreditAttribution: wmostrey commentedA huge update has been done. Added features:
More goodness coming the following weeks!
Comment #6
tostinni CreditAttribution: tostinni commentedGreat to see you working on this.
What about my idea of filters I mentionned before ?
Usefull ? Useless ? Crappy implementation ?
Comment #7
wmostrey CreditAttribution: wmostrey commentedHey tostinni, this will indeed be implemented. I added another big update yesterday and this morning and you'll notice that I am moving the system towards the fields and filters as per views.
Comment #8
wmostrey CreditAttribution: wmostrey commentedAnother big update: weighted fields! I'm currently working on adding more fields like: node count, comment count, total post count (node + comment), [content type] node count, .. After that I'm adding filters and arguments.
Comment #9
wmostrey CreditAttribution: wmostrey commentedClosed to keep issue track clean. Seperate issues are created for each request.
Comment #10
wmostrey CreditAttribution: wmostrey commentedClosed to keep issue track clean. Seperate issues are created for each request.