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.

CommentFileSizeAuthor
#5 patch_views_337741_linkprofilefields.patch737 bytesjoachim
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jonasvh’s picture

subscribe

merlinofchaos’s picture

You can accomplish this through theming.

vesapalmu’s picture

Yes, 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.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

What 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.

joachim’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Status: Closed (won't fix) » Needs review
FileSize
737 bytes

merlinofchaos, 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!

merlinofchaos’s picture

Status: Needs review » Fixed

Well that's pretty easy, I guess. Committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.