I'm sure this is VERY basic, but after 1/2 day or searching, I am finally posting for help.

I have a simple view that is displaying a list of node titles & other fields (view count, comment count, etc). I can't find how to add the name of the author who wrote the corresponding node to a field.

For example- the final result SHOULD look like this-

Title
by: Author Name
Views: # Comments: #

I have everything else working- just can't figure out how to add the author name field. What's the secret?
Thanks guys!

Comments

eyal8r’s picture

I got it. Gotta add a Content: Author in the relationships portion, and User: Name in the field list in D7.2

mudsurfer’s picture

I have just found this post, and it has finally brough me sanity after 24 hours of hair pulling. I assumed my difficulties were due to lack of sleep, and cold&flu medicaton, however it was that missing relationship!
As per above - I had not been able to add an "author" name field to my view - but after going to relationships, and selecting Content:author, a whole list of related User fields became available.
Obvious in hindsite. I need to unlearn some of the D6 habits I think.
Thank you eyal8r

Anonymous’s picture

I HAVE BE STRUGGLING WITH THIS TOO!!!

pgancarski’s picture

I was getting into killing mood. Why every little thing in Drupal has to take hours to solve?

clcanela’s picture

It works! great! tnx alot!

joverstreet’s picture

Understanding the Advanced->Relationship area is going to open up a whole new world where Views are concerned! Thank you for the help (the user association was bugging me too)!

manish sharma’s picture

Thank you :) ... i was looking for the same.

rakesh.gectcr’s picture

Its working properly, 2 steps

1) Create relation ship in your view with " Content: Author "

2) Get a Field in the Fields with " User:Name" with relation as author.

Problem Solved.. Thanks all

---
Kind regards,

Thank you,
Rakesh James

prudal’s picture

For all who kept searching as long as myself for relationships within the views-module:

Go to admin/structure/views/settings and

activate "Always show advanced display settings"

Then you can create relationships like described above. =)

Thanks 2 all

dongtian’s picture

Thanks,

Muhammad Akif Nadeem’s picture

ThankYou So Much

onequad’s picture

Another way to do this by using a view to view Users (not Content) http://groups.drupal.org/node/129979#comment-751473

surendra77c’s picture

Create View block

1 . Contixtual filter
Content : Nid [ do the setting provide default value Type :raw value form url ]

2 . Relation ship
Content : Author

3 . Fields
(author) User : First Name
(author) User : Last Name

4 . Filter Criteria
Content : Type(= article)

5 . Done you can see the node author to the respective contnent .

hectorplus’s picture

Worked for me thank you!

Hollowpoint’s picture

Thank you. Just what I wanted too.

usmanjutt84’s picture

Works for me