Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I currently have a content view that displays a list of nodes for a blog. I would like to display the node authors real name (John Smith) at the top, but currently I am only able to display their username (john_smith) by creating a relationship to Content: Author and then adding User: Name.

How can I grab some fields from the node authors user profile?

The fields I need are $field_first_name, $field_last_name, $field_position.

FYI: I realize that there are modules that might be able to fix this problem such as Real Name, but I am hoping to do this without it.

enter image description here

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you don't use any special modules and you have simply added fields to the user acount (on /admin/config/people/accounts/fields then you should be able to add those fields in the Views UI. Just like you do it with all other fields, except that you use the author relationship that you have already created.

share|improve this answer
    
Ha! I must have needed to save it. I swear it wasn't there. It's there now! Thanks. –  Dan Mar 9 at 0:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.