Hello,
I have created a view list of users.
I want to create a users list of a specific team. The team is associated to the user by an entity-reference field in the user form.
Then i have a relationship connected to an entity-reference field (related team).
I want exclude the current user from the list. I have always use the "exlude" option in the contextual filter, but in this case it's not functionnal.
My settings:
1/ In contextual filter > User: Uid > Provide default value > User ID from url
2/ In Relationships (1) > Entity Reference: Referenced Entity (for the team)
3/ In Relationships (2) > Entity Reference: Referencing entity with the previous relationship (for the fields)
3/ In fields > All the user datas : lastname, firstname... associated with the second relationship.
The view is functionnal and i get the users of the specific team. But i can't exclude the current user.
Have-you any idea to resolve this problem ?
Thanks for your help.
Comments
Comment #1
kumkum29 CreditAttribution: kumkum29 commentedComment #2
hartcapl CreditAttribution: hartcapl commentedI've just come across this problem myself. I'm using neither contextual filters nor relationships.
In the entity reference view add the filter criteria:
User: Current (no)
this will remove the logged in user's name from the list.
Comment #3
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.