By eyal8r on
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
I got it. Gotta add a
I got it. Gotta add a Content: Author in the relationships portion, and User: Name in the field list in D7.2
Thank you!
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
THANK YOU!!!
I HAVE BE STRUGGLING WITH THIS TOO!!!
People in my office are very gratefull
I was getting into killing mood. Why every little thing in Drupal has to take hours to solve?
It works! great! tnx alot!
It works! great! tnx alot!
Another thanks to add
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)!
Thnx brother
Thank you :) ... i was looking for the same.
Than you ..!
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
Relationships must be activated in views
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
Thanks,
Thanks,
Thankyou
ThankYou So Much
Another way to do this by
Another way to do this by using a view to view Users (not Content) http://groups.drupal.org/node/129979#comment-751473
dispaly author name in node
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 .
Worked for me thank you!
Worked for me thank you!
Thank you. Just what I wanted
Thank you. Just what I wanted too.
Works for me
Works for me