It would be useful to link user profile fields to a user. Currently it is only possible to check "Link this field to its user" checkbox only for user fields, but not for profile fields. I find myself often building user lists that display only information from user profiles and it would save me some trouble if profile fields could also be linked to the user.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | patch_views_337741_linkprofilefields.patch | 737 bytes | joachim |
Comments
Comment #1
Jonasvh commentedsubscribe
Comment #2
merlinofchaos commentedYou can accomplish this through theming.
Comment #3
vesapalmu commentedYes, I know that you can do this with theming. In my opinion it would make the user interface more consistent to enable links also for profile fields. I don't think I'm the only one who wants to make views of users and link their profile fields to them.
Comment #4
merlinofchaos commentedWhat I'm finding is that a lot of people want to link to <foo> and the list of <foo> is actually quite large. Sometimes it's closely related, sometimes it's not. The eventual answer is that Views needs a real answer for generating links to data and adding a bunch of hardcoded "link to this user" isn't the answer, because the desired list is so big. So for the moment, the answer is "You get to theme it" until a real solution can be added in.
Comment #5
joachim commentedmerlinofchaos, as far as I can tell this is a one line patch!
Set profile module fields to use views_handler_field_user instead of views_handler_field.
This makes perfect logical sense -- views_handler_field_user is a generic field handler for user-ish fields, just as views_handler_field_node is a generic handler for anything node-like.
Hey presto, an option to link to user!
Comment #6
merlinofchaos commentedWell that's pretty easy, I guess. Committed!