I have set-up a custom profile feild which is a checkbox (Profile: Pulmonary Hypertension Associated With HIV). I now want to list all members who have checked the checkbox.
I set up a view with the feild 'Surname, Name' (also custom) with a filter looking at the field Profile: Pulmonary Hypertension Associated With HIV, with the operator as EQUALS and the value set to YES.
Nothing shows up even though I know there are members whom have checked the profile field Profile: Pulmonary Hypertension Associated With HIV.
Any ideas what I am doing wrong?
Comments
Comment #1
As If commentedDepends on how the content type is set up and how the field is set up. What sort of object are we looking at? Assumedly you have made user profiles into nodes... Are you using Usernode for this? Something else? If all this makes sense to you and my assumption is correct, some alternative filters would be...
NOT EQUALS NO
EQUALS 1
NOT EQUALS 0
Or maybe the people who checked the box didn't have any data in the name field? Two things you can do to check things out:
1. try putting something in the Empty Text box to see if you're hitting any nodes at all.
2. try using a different field that you know for sure has data, like Node ID, see if you hit anything
LVX
TF
Comment #2
merlinofchaos commentedViews lists nodes, not users; so if your users do not have associated nodes (posts), they will not be listed. Moreso, if your users have more than one post, they'll be listed more than once.
This is a common misperception in what Views can do.
A workaround is to use a module such as usernode, nodeprofile or bio which can associate a profile node; it's actually more powerful than the built-in profiles because you can use CCK for the profiles, and then by filtering to that node type, you can get excellent user lists.
Comment #3
gavin_s commentedAh ha! User profiles are not nodes at the moment! I'll start there and report back.
Comment #4
merlinofchaos commentedI'm guessing a crosspost re-actived this =)
Comment #5
gavin_s commentedYep that worked a treat. Using usernode was the key, and you were right I misunderstood what views was doing here.
Cross post - my bad :)
Thanks guys.
Comment #6
ebrar commentedaids belirtileri, hiv belirtileri