I looked up xNAL standard and it states that Administrative Area is for states/provinces.
I can't seem to differentiate, using Administrative Area as a filter in views.
Nothing comes up.
Thanks,
JM
I looked up xNAL standard and it states that Administrative Area is for states/provinces.
I can't seem to differentiate, using Administrative Area as a filter in views.
Nothing comes up.
Thanks,
JM
Comments
Comment #1
rickmanelius commentedI'm having this same issue. I would like to create an exposed filter listing, say, the 50 US states as a drop down.
I'm willing to do some of the coding, but don't know where to begin. Any pointers would be appreciated.
Comment #2
rickmanelius commentedOne problem I could foresee is that the administrative areas change depending upon the country. However, if one were to set which countries administrative areas one was filtering against, that would eliminate this issue entirely.
Comment #3
socceronly commentedWhy would that matter? I don't claim to know how it works, but is views doing more than looking for the sting in the field?
Thanks,
JM
Comment #4
rickmanelius commentedI'm looking at this right now
Basically the address field is extending a class and providing the name, field name, and list of options.
Trying to see if I can drop in the states right now...
Comment #5
rickmanelius commentedHere's the other area. I feel like I'm close. Basically add all the options to the area in #1. And then register the filter in this area below.
Comment #6
elly commentedDid you get any further with this? I need to do a state dropdown exposed filter on addressfield data...
Comment #8
d3vo commentedI would like to achieve the same thing. I read something similar here But cant quite get it to work right.
Comment #9
socceronly commentedI won't be revisiting this for a few months, but I thought I saw in another thread that this was fixed.
I hope it has, because I am relying on it. Is there some other way to do this without having people enter the province twice?
Comment #10
socceronly commentedHmmm..... knock knock....
Anyone know if this works yet?
Comment #11
rszrama commentedThis is a duplicate of #1304288: Add a Views handler to filter by administrative area using a select list instead of a textfield, and to the question above, no, Views doesn't just populate the select list based on options present in the Views results. We have to figure out how to populate it in advance ourselves, and that does make it tricky to know how to populate it - i.e. which countries' administrative areas should be taken into account? Follow-up discussion should take place in the linked issue.