I am guessing this will support country-state-city selection. It would be great if there is some sample country-state database is available to work with this.

Comments

wim leers’s picture

Status: Active » Closed (won't fix)

Another module could easily hook into this. You could even simply create a taxonomy that represents such a structure. This module is not designed for providing specific solution, but for being used by specific solutions.

nandou’s picture

Do this tax:
Country1
--State1.1
---City1.1.1
---City1.1.2
---City (...)
--State1.2
---City1.2.1
---City1.2.2
---City (...)
Country2
--State2.1
---City2.1.1
---City2.1.2
(...)
Then add use content.taxonomy, use taxonomy select widget as a cck field, select this vocabulary et voila.

You should probably label the cck field as "Select Country, State and City" as there is no way to label individual dropdowns.

Hope it helps. (It did it for me !)

Btw: Be SHURE you have the latest version: There was a bug corrected a few hours ago.

wim leers’s picture

Exactly. Thanks for the example, nandou. Perhaps you could write a handbook page about it? :) ;)

netbear’s picture

Title: country-state-city » don't work
Assigned: Unassigned » netbear
Status: Closed (won't fix) » Active

I also have activated this module, activated the required update module, moved the jquery.js misc as indicated in the read me file.
1) in node form it selects some terms by default, but when i submit it terms of taxonomy are not asigned to node, but when i select another term node gets it.

2) when using it in VIEWS if i use filter type and select any term it always find no nodes, though i know there are nodes of this term.
Great module, thanks.

wim leers’s picture

Reproduced problem #1. Please create a separate issue for that. Should not be too difficult to fix.

Your second problem however, I cannot reproduce. But perhaps it's the sam eproblem as #1?

wim leers’s picture

See http://drupal.org/node/173538 for #1: it's fixed already.

netbear’s picture

Title: don't work » fantastic

Thanks, it works now!
Have no more problem. This made me jumping up from my chair to ceiling! Absolutely brilliant module, many people were waiting for it.

wim leers’s picture

Title: fantastic » country-state-city
Status: Active » Closed (won't fix)

Excellent! :)

Restored title and status.

Please start a new issue for your own problems next time ;) :)

Kerel’s picture

Hi,

I did not find another topic that handles this so I put my question here under this old topic.

I would like to do something similar like country-state-city but for the whole world.
Is it wise to use Taxonomy?
Because it is a lot of work to put al the countries-states-cities of the world manually in a Taxonomy.

So I would like to ask, can I do this faster by importing some data into the database or something similar? And those this module support these manually created tables/columns?

I hope my question is clear enough...

Thanks in advance!

liquixis’s picture

(sorry for my english)

You can find database with data needed for you and import it into term tables by script.

Example of import script you can find at: http://drupal.ru/node/23269 (In russian), direct link for base in russian and import script: http://drupal.ru/files/base_1.zip
Also you can see: http://drupal.ru/node/25340 (In russian)

Use http://translate.google.com

P.S. now i'm writing HS implementation wich work with table (with struct [id, parent_id, title, weight, ...]) direct, without need to use taxonomy.
May be I will put it as HS issue...

P.P.S there are many geo databases in the internet.

Turkish Delight’s picture

Is there any way to incorporate the location module into this module? So when I would enter in location information (country, state, city) the taxonomy that I have set up for it would automatically incorporate that information.
Example for taxonomy Restaurant Type:
United States >> Colorado >> Denver >> (taxonomy entered regularly) Fast Food >> Hamburgers >> Restaurant Title

I figure something like this especially being incorporated into views would be extremely helpful.

Honestly I'd like to see the D6 port first, but I figure I should put the idea out there for later. Thank you for all of your hard work!

Kerel’s picture

Hi overall,

thank you for the answer. There are some modules that help you import Taxonomy terms.
The ones I found: Taxonomy CSV Import and Taxonomy XML import. So I think I will do it this way because it is somewhat easier and I do not understand Russian :).