1

I think I might have a fundamental misunderstanding of how taxonomy works in Drupal.

I've set up some vocabularies, such as 'accommodation', 'things to do' and 'eating out'. Within those, I've added parent terms 'accommodation types' and 'ratings' for accommodation, 'nationality' and 'suitable for' for eating out and so on.

Both vocabularies share some common features, though, such as 'location'. I set up 'location' within the 'accommodation' vocabulary first and then tried to make it available to 'eating out' by setting it as a parent, but I could only see other terms within the vocabulary.

What is the best way for me to allow each vocabulary to share a location without manually recreating and updating a 'location' term in each vocabulary (which surely must be the incorrect way of doing what I'm trying to achieve?)?

0

It sounds like you are using vocabularies where you could be using nodes.

So a node called the 'grand hotel' would have a rating, it may be suitable for some types of people and may also have a location.

So you can create node type 'accommodation' which can use the vocabulary 'accommodation types', 'suitable for' and 'location'.

You could have a node type 'eating out' which can use the vocabulary 'cuisine type' but share 'suitable for' and 'location'

So each cafe or hotel could be a node of the respective type, but could appear in the search results for 'London' for example.

2
  • Hi Jeremy, Thanks for the reply. I might have been a bit unclear with my question - I'm still finding my way when it comes to talking about Drupal! I've created nodes (content types) for things like 'accommodation', 'eating out' etc. I also have vocabularies set up as follows: 'accommodation', 'dining and drinking', 'things to do'. From what you're suggesting, I should be setting up 'suitable for' and 'location' as vocabularies in their own right, rather than as terms that I'm trying to share with other vocabularies - is that right? I think I've fundamentally misunderstood Taxonomy! – James May 13 '11 at 18:37
  • Yes setting things as vocabularies in their own right sounds like the way to go. In d7 you can have term reference in a taxonomy term as you describe, but in essence a taxonomy is a set of related items of the same class. – Jeremy French May 13 '11 at 19:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.