Hello, I'm doing a website similar to gumtree/craigslist except without the scale :P I think the best solution to my categorising problems would be a vocab within a vocab structure for the site, like this:
Location 1 (Top vocab)-(not selectable as a category)
- top category, e.g. automobiles (second vocab) - (not selectable as a category)
-- term, e.g. cars (selectable as a category)
--etc
What it'll look like when expanded:
Rome
- Automobiles
-- Cars
-- 4x4
-- Trailers
- Relationships
-- Friendship
-- M4F
-- F4M
-- M4M
-- F4F
- etc
Milan
- Automobiles
-- Cars
-- 4x4
-- Trailers
- Relationships
-- Friendship
-- M4F
-- F4M
-- M4M
-- F4F
- etc
Naples
- Automobiles
-- Cars
-- 4x4
-- Trailers
- Relationships
-- Friendship
-- M4F
-- F4M
-- M4M
-- F4F
- etc
Anyway, long story short, how do I get a vocab in a vocab or is there any other way to go about it that you can suggest?
Comments
Term hierarchy
While creating a Vocabulary, you can specify its hierarchy (single / multiple). Then each new term can have a 'parent' property specified. The parent property could be <root> (i.e. the vocabulary itself) or another term from the vocabulary. You need to choose 'single' hierarchy if you want to disallow a term from having multiple parents, whereas you need to choose multiple hierarchy if you want to allow a term to have multiple parents. From your example, it appears that you need to choose 'multiple' hierarchy.
So you can add the following using the 'admin/content/taxonomy' page:
My Vocabulary (vocab, with multiple hierarchy)
--Rome (term, parents:<root>)
--Milan (term, parents: <root>)
--Naples (term, parents: <root>)
----Automobiles (term, parents: Rome, Milan, & Naples) [The 'Parents' field allows multiple selections by pressing the ctrl key, using which you can choose all these parents]
----Relationships (term, parents: Rome, Milan, & Naples)
------Cars (term, parents: Automobiles)
------Trailers (term, parents: Automobiles)
------Friendship (term, parents: Relationships),