2

Cascade select based on multi-level node reference

http://drupal.org

Hi,

Ok, I think this is an age old question, I spent hours searching the site but couldn't find a ready to use solution, so this is just to confirm there is no solution.

I need to model a multi-level hierarchical relationships between content types, a common example is country/state/city, each one is a content type and has reference to its parent. This is easy to do with CCK Node Reference. Now the problem is:
1. In add/edit city form, I don't just need a state dropdown which lists all states from all countries, I need a country dropdown + state dropdown, where user needs to select a country first, and the state dropdown would automatically be filled with states in the selected country, then user can proceed to select the state.
2. Using Views to display a list of cities, I need a cascade filter with country dropdown + state dropdown, the behavior is the same as #1
3. As a bonus, I need user to add a city for a country without specifying the state

I realize it is possible to model this using taxonomy + Hierarchical Select, but I need additional fields in country/state/city, so I have to model them as content type.

Any ideas, suggestions are welcome.

Thanks

Read »
Created by development_seed 2 years 31 weeks ago
Category: News   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Cascade select based on multi-level node reference

Recent comments