I added a custom field using Admin > User Management > Profiles so that users can display their full name on their profile. The field is called "profile_fullname." I created a custom page using Views to list all my users (with the great help of the tutorial in the advanced help, thank you very much). I would like to be able to link to a users profile using the "profile: fullname" field, just as there is an option when you choose to display the "user: name" field. I've linked to some screenshots in the hopes that they'll help this request make a little more sense.
http://i35.tinypic.com/2dv0ahe.jpg
http://i37.tinypic.com/xmlhn8.jpg
**NOTE: I'm not sure if I assigned this to the right component, or made this feature request to the right project, as this is my first time doing such a thing. If I'm wrong on any front, please let me know :-) Great work with this module, I love it!
Comments
Comment #1
Reach commentedI've been scratching my head over exactly the same thing, finally figured it out..
I had to theme the field (Look at the "Theme: Information" in the views controls), make the tpl.php file corresponding to the field you want to link, and start with the default it provides, then enter this line of code instead of just ?php print $output;? :
{a href="?q=user/{?php print $row->uid;?}"}{?php print $output; ?}{/a}
There is probably a much better way to do this, but at least I finally got mine to work, so I'm happy. :)
Comment #2
joachim commentedDuplicate of http://drupal.org/node/337741