When I choose username in the views 'fields' section, the realname automatically displays instead.
But when I do the same thing in the 'filter' section, Views still utilises the username.
As a workaround, I tried adding the realname profile field into the filter instead, but Views seems
to crash at the moment when adding any profile fields to either the 'fields' or 'filter' section.
Actually, come to think of it, it's not the realname profile that breaking Views is it?
Anyway, I don't know if you're still considering support requests for D6, since D7 will probably
use separate username and display name, but my site's going to be using D6 for two more years,
so I thought there's no harm in asking.
Cheers.
Comments
Comment #1
nancydruFirst, I don't have a lot of hope for decent core support like this in D7. The core maintainers keep pointing to contributed modules like RealName.
I can try looking at the Views stuff, but I must admit that I am not a Views guru and usually get lost when I look at that code.
If some Views guru comes along, a patch would be wonderful.
Comment #2
zengenuity commentedI'm not totally sure what the original poster was looking for, but I needed a quick way to add an exposed Realname filter in a view, and I was able to get it just by adding a short bit of code to realname.views.inc. Here's the whole function, with my small addition noted.
Comment #3
nancydruThanks for the patch.
Comment #4
nancydruIncluded in 6.x-1.3
Comment #5
bfr commentedHow about the same thing when filtering with user reference field?
Can it be done somehow?
Comment #6
johnhanley commented@bfr, I second your request. I looked at this module for the first time today, but unfortunately it lacks user reference field support w/ exposed filters.
Comment #7
liquidcms commented+1 on Realname use in userref exposed filter
Comment #8
nancydruOpen a new issue.
Comment #9
liquidcms commentedwhy, when it is the issue reported here?
Comment #10
nancydruBecause a) this issue is closed; you're lucky I even saw it, and b) it differs from the original request.