Excuse my ignorance (I'm new to Drupal) but I'm building a 4.6 based site, and want to enable all content to be tagged with country names. so I thouht that this location module would be ideal. However, rather than integrating with the taxonomy system, it appears that the country names are separate, and displayed too prominently beneath the content of the post.
Is there a way that I can use this module to enable content to be tagged (in the same way that taxonomy tags work) with country names? Os is there a separate solution?
Any advice welcome.
Regards
Graham

Comments

marcoBauli’s picture

Version: 4.6.x-1.x-dev » 6.x-3.x-dev

just pushing this request a bit... i would be very interested too. I am not a developer, but i am willing to donate if changes are needed! thank you

karens’s picture

I've been looking at things like this. I think it depends on what you want to accomplish.

1) You want countries available as groupings for data and you want to have a taxonomy type tag on each with the country name that you can click to see other data tagged with the same country. -- best option is probably just to use taxonomy to do this. Create a vocabulary called regions and add a term for each country, then tag your nodes accordingly. Alternatively, use category, create a category for each country, and tag your nodes accordingly. There is no reason to use the location module for this purpose, and I don't think it will give you any benefit.

2) You want to be able to use the location proximity search, so you actually want a location lat/lon attached to a node so you an search on it or because you want a map link, or some other thing that location offers that you can't get in a regular module. This would be the real reason to use location rather than proximity. However, I don't think proximity searches by country are going to work well. In the proximity search it is looking for proximity to a zip code, and the program has no way of automatically attaching a lat/lon to a country (too large an area), so you would have to manually input the geographic center of each country into a node created to be the "home page" for the country to have it do anything in a proximity search.

Anyway, if you wanted this kind of functionality, you then need a way to attach your content nodes to the country home page. The easiest way to do that would be to switch to category rather than taxonomy, since it creates a node for each term (unlike taxonomy where there is no node). You can then create a category for each country, enable the location module and give the category node a location, then select that category for each individual node that belongs in it, which will give you a link back to the country home page.

karens’s picture

Oops, just realized you are using 4.6. Category won't work in 4.6. The best bet for that will be regular old taxonomy.

marcoBauli’s picture

fortunately i am building my site with 4.7.0b6 cvs, so i am on category module (lucky me:). I understand your point here, still the question is:
would it be possible to use location country/state dropdown boxes also as categories, in order to prevent users (in my case content is submitted by users) to choose the same Country, State, City two times (one for the Location module and one for the Category module)?

this looks tricky and requested not only by me. I found this URL where something similar (?) is explained: http://nicklewis.smartcampaigns.com/node/722

marco

karens’s picture

OK, I think I get it now. I didn't really understand what the request was (or maybe the original requestor was asking for what I thought, but you were not).

Anyway, I think this is doable, but it would take some coding and testing. As I said, I have been investing ways to link nodes and locations in various ways, so I may play with it at some time, but I have other things I have to get done first, so it won't be right away.

There are hooks in each module that can be called by other modules, so the basic procedure would be to figure out what you want to happen when (i.e. when a user selects a country for a node, a matching taxonomy term/category is also selected automatically). You have to hide from the user the thing that you are doing automatically (give them no link to select the tax term themselves, both so they don't get confused and so they don't overide what you're trying to do), probably by manipulating access control so they don't see the option. You would still have to create the taxonomy/category structure so there is a term to select. You have to create a table of some kind that matches up what country goes with what tax/category term so the process can be automated and create a process so that every time you update tax/category that table is updated. Then you need to figure out what info the tax/category module needs to create/update a tax/category term, create that info, and invoke that module to process it the info whenever the location module is invoked.

So, yes, it is not real straightforward. I wonder if the actions module would handle some part of this? I haven't tried it, but it sounds like the kind of thing it might do.

marcoBauli’s picture

Thanks for your patience KarenS! Effectively my request took Upperholme's initial feature request as starting point (just to avoid overcrowding the issues page).
I searched all yesterday morning, but seems this is something Drupal lacks at the moment. Not being a developer (unfortunately) i am trowhing a stone in the lake here and see where the waves go.

I currently hired a developer for my portal, so will ask him how much resources would this task take. Other than that, i could offer testing, feedback, and a donation whenever this feature will be taken into consideration. As a non-develper, this is the maximum i can do to constructively participate.

Regards
marco

brmassa’s picture

Status: Active » Fixed

since Drupal 5 its irrelevant

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.