Show countries list, cities list. How do I?

Events happening in the community are now at Drupal community events on www.drupal.org.
dinhhung's picture

Hi all
I'm totally a newbie to Drupal. In my opinion, Drupal is so amazing.
And now I got something to ask you, I want to show all the COUNTRIES as a list, then, click on each country it will show the page contains list of CITIES of that countries.
I know there is some module could do that, because this is the common task, but I don't know exactly where it is, how to configure it. So can you help me, big thanks for every help!

Comments

Addresses ?

markus_petrux's picture

http://drupal.org/project/addresses

Development is in alpha stage though.

Big thanks. I try it rite

dinhhung's picture

Big thanks. I try it rite now.

Checked, but not solve the

dinhhung's picture

Checked, but not solve the problem.
Is there any module like this for v5.x, can you tell me?

Integrate geonames

PGiro's picture

You know what would be really cool ? Integrate with http://www.geonames.org/ either via webservice or simply by allowing the import of their files (it's free as far as I can tell).

I'll post a request in the issue queue

use cck+taxonomy

likewhoa's picture

use cck+taxonomy, you would first create your taxonomy and fill that with your country list then just create a "cities" content type which will contain the cck taxonomy of your countries list. I personally just setup a "locations" taxonomy broken down by continents -> countries -> cities. Also take a look at location module together with gmap to map locations to google maps.

bending technology to fit businesses.

what he said +

ncameron's picture

You might want to save time by copying and pasting from here: http://drupal.org/node/263909

--
Drupal Development for Pleasure and Profit
http://drupal.altate.ch

--
Open Source Web Solutions
http://cameronandwilding.com

Yours is really a great

dinhhung's picture

Yours is really a great idea. I tried it and seem to be everything solved. Thank you very much.
Just one more question, I want to associate the city with OG group. Can I?
Thanks all for helping me, so sweet!

use og_vocabulary

likewhoa's picture

use og_vocabulary or just assign a cck taxonomy field to the group content type node. og_vocabulary will allow each group to have a vocabulary assign to them.

bending technology to fit businesses.

I don't get it

ilikourou's picture

Hello.

I am new to Drupal. I keep reading your post trying to understand what you suggest but got no luck until now.
I have created countires -> cities list in taxonomy. What I cannot do is find out how to use this taxonomy vocabulary on a content type. There is no field type for taxonomy and 'Content Taxonomy' module is no more developed so I don't think it's a good idea to use it.

I use CCK and Content Profile to have Profiles created as nodes.

Thanks,
Ilias

Thanks all for your help.

dinhhung's picture

Thanks all for your help. I've already found the solution, with all your help. It's so simple, just only using Taxonomy with hierarchical terms.
Thank you all. Thank you, Drupal

suffering drupal's picture

Hello all,

I have the same issue as dinhhung. Understand about creating new Taxonomy lists and the hierarchical use. Starting from 0 it's all rather easy.
What I DON'T understand is why it should be necessary to import a country list from elsewhere if all the countries already exist under Gmap? Couldn't the countries just be automatically taken from Gmap?
Seems so logical to me. This way one could also skip several fields to fill out and everything is syncronized.
The list http://drupal.org/node/263909 ncameron refers to does't even start the same as the list from Gmap...

Any explanations, suggestions?
Or at least the answer to the 1 big question, IS IT or IS IT NOT possible to use countries directly from Gmap list for taxonomy???

Thanks!

Optimize drupal: use Gmap countries for taxonomy

suffering drupal's picture

By accident I have found my own comment in a search.
I am surprised that after several months there is no answer at all to my question. Doesn't anyone bother?

Does this mean there is no-one else who wants to use Gmap plus Countries as taxonomy term BUT use only one (1) dbase variable and at the same time avoiding that users have to fill out twice the same information and avoid duplicate information in the database???
Is everybody maybe only making local websites?

Still looking

Digital Storm's picture

I stumbled upon this post while searching for a solution to having a taxonomy generated directly from addresses or preferably location module but can't find anything after many hours or searching. Writing modules is way out of my expertise level but I would if I could. I too find it hard to believe that there is not more interest in this.

Social Networking Sites

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: