Hi guys,

I have a simple requirement from this module, I need two containers, countries & cities, so when, for example, a user selects the UK, they get a list of British cities.

Cities have Countries as their parent and each individual city has been allocated to a country, eg. Cambridge has UK as parent. When I go to the node to select categories, I can only select country, as cities only have the 'none selected' option.

Getting this sorted would rock my little world, any ideas?

Cheers,

Nick,

PS. drupal 6.6

Comments

Jaza’s picture

In a nutshell:

  1. Create a 'Country' container, and under 'Content types' select a content type (e.g. 'story').
  2. Create a 'City' container, under 'Content types' select the same content type as for 'Country', and make sure that 'Allowed parent container' is set to 'Country'.
  3. Add some country categories. All you really need is the title.
  4. Add some city categories. For each one, you should be able to select a country as its parent.
  5. Create a node type e.g. 'story'. There should be two category select boxes, one for 'City' and one for 'Country'. When you update the 'Country', the list of cities should change dynamically from 'none selected' to the list of child cities of that country (plus 'none selected' should still be there). Or, if you have JavaScript disabled, you should see a button labelled 'Update children of Country', which will trigger the update non-dynamically when you push it.

That's about it! If you still have problems, please post back and describe your container settings in detail.