Link to home
Start Free TrialLog in
Avatar of glepiza
glepiza

asked on

country and city list for Drupal7

Dear experts,

I would like to create a content type field inside users profile page that drops down a country list (like a hundred countries), then depends on which country is selected then only display cities in the second drop down list.

Could you please help me to see what would be the best way to do this?

Thanks in advance,

Winter
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

You can use geonames as a webservice or download 8million cities to your hearts content.  I would try the webservices first http://www.geonames.org/
Avatar of glepiza
glepiza

ASKER

Cool thanks, do you know how can I add it as a content type field?
I'm sorry, I answered this on the basis of knowing the data and possibly using ajax/jquery to do a look up.  However, I found there is a geonames module https://drupal.org/project/geonames.  Perhaps somebody else with more drupal experience can chime in.  

Does that link look like it provides what you are looking for?
Avatar of glepiza

ASKER

Hi padas,

Well, I installed the module, but can´t see how can I added as a content type. Still digging it :)
ASKER CERTIFIED SOLUTION
Avatar of Aaron Feledy
Aaron Feledy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of glepiza

ASKER

Thanks! that is what I was looking for