How can I pass user real name as a contextual filter in views I am trying to simply provide a view of author content by passing a contextual link for the author ID to provide a URL with the author's name as selected with the Real Name module.

For instance: "/sitename/content-type/realname".

When I set up the filters, the only way I can get it to work is by providing the user name, not the real name as set by the real name module. I would like to keep the login name private, and use the real name as assigned.

Has anyone had any success doing this?
If the real name is stored in one field in your user, you can set up a relationship with the user and then point to that in the contextual filter, eg, here I just created a "real name" text field in the user and then did this:



and then for nice looking urls, did this in the filter:



so I can go to

www.example.com/by-real-name/this-real-name

or

www.example.com/by-real-name/that-real-name

It's really up to you re: case transformation, but two real caveats:  you have to make sure real names are unique AND it gets really squirrelly if and when special characters are in the real name field.