I have created a view that displays a content type that has a CCK user reference field in it.

I need to be able to cvreate a views argument to filters the view to only display the content which user reference matches the user name, not user id.

All user names are going to be account numbers, so there won't be any spaces, etc. Is there any way to create an argument to show a list of nodes whose user reference user name match the argument?

Comments

merlinofchaos’s picture

Status: Active » Fixed

Add a relationship for the userreference.

Then add User: Name as an argument and set the relationship to the userreference relationship you just created.

3cwebdev’s picture

Thanks (again) for the fast response and great help! Views is totally amazing, but some of the more advanced stuff is a little hard to figure out. Your instructions worked perfect :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.