I'm trying to show user info in node where this user name is set in User reference field.
I have content type where is User reference field (field_customer).
I have Views:
- Show: Users
- Contextual filter: (field_customer) Content: Customer
- Relationship: User: Customer (field_customer) - reverse
In Contextual Filter I have: When the filter value is NOT available = Provide default value User ID from URL
In Relationship I have: Require this relationship
And I have fields like User: Email, User: Name etc.
I created node and set one user to User reference field.
Views does not work as it should. It shows all users. I tryed to play with Views settings but just could not find proper settings.
What I am doing wrong here?
EDIT
I also created another Views.
- Show: Content
- Contextual Filter: Content: Customer
- Relationships: Content: Customer
In Contextual Filter I have: When the filter value is NOT available Hide view
In Relationships I have: Require this relationship
And it shows nothing on node page. Also tryed with different settings but no luck.