I have a node type with location data attached; is there a way to use the City and County fields as taxonomy terms?

Comments

bsenftner’s picture

A little more information would help...

As in:

  1. what format is your location data?
  2. where is this location data coming from: module? user entered?
  3. Are you comfortable using php?
  4. have you ever worked in the Drupal API?
WorldFallz’s picture

For what reason? What is it you're ultimately trying to do?

syawillim’s picture

The nodes are simply blog posts and the location data is attached via the location module. I want to be able to tag the post by country which is a required field and by city if entered without the user needing to re-enter this information.

I'm just looking to categorise the posts and will most likely use tagadellic at some point.

WorldFallz’s picture

There shouldn't be any need to duplicate the info in the taxonomy system. For example, the case you mention of a tag cloud, should be doable with http://drupal.org/project/views_cloud using a view with the location information.

ducdebreme’s picture

It is a way to provide location tag cloud like on Upcoming -> http://upcoming.yahoo.com/place/
I was searching within the Drupal projects, but did not find anything, that may provide the functionality.

I should be possible to update a node's location tags within hook_nodeapi / on change / save upon updating a node or creating, but i don't have a solution yet.

Le Duc de Brême - http://www.early-dance.de

WorldFallz’s picture

There are several cloud modules: http://drupal.org/project/modules&text=cloud

ducdebreme’s picture

Yes, but the cloud modules need taxonomy based tags and this tagging is not provided by the location module.

Le Duc de Brême - http://www.early-dance.de