Drupal Taxonomy State List


By admin - Posted on 10 March 2009

As you probably know if you are visiting this site, Drupal is the de facto standard CMS around here. One of the things that makes drupal so powerful is its taxonomy system to sort node into categories.

One of the most common taxonomy terms clients request is US States. Imagine a national site where users can create data (nodes) about events that have happened. One piece of information you might want to store about that node is the state in which the event took place. The proper way to do this is with taxonomy.

The problem with this is that it is tedious to enter each state as terms in the taxonomy. Enter the Taxonomy XML module. (Grab a copy of it from the preceding link)

The Taxonomy XML module allows you to import XML files into your taxonomy vocabulary as terms. So where do you get the XML file that contains all of the states? Right here!

I purposely made the XML file generic so you can import it regardless of your taxonomy's name. Enjoy!

AttachmentSize
states.xml2.3 KB