0

I want to show the list of state and city of particular state in dropdown.

I have done it using the Conditional Fields module but not helpful as I have to show the filter for cities in view.

Any suggestions?

  • Are you using cities and states as taxonomy values..? – Abin Aug 13 '15 at 6:32
  • No It will take too much time. – alok Aug 13 '15 at 6:36
  • As i have to show the list of Indian state and cities of each state – alok Aug 13 '15 at 6:40
2

If you have City and State list in CSV, you can import to taxonomy using Taxonomy CSV import/export module.

This module allows you to import or export taxonomy from or to a CSV (comma-separated values) file or with a copy-and-paste text.

you can use Hierarchical Select Module to list it in content type

you can find Indian states and city list in xlsx format here

1

I like to suggest Hierarchical Select Module.

Hierarchical Select has the ability to save the entire lineage of a selection or only the "deepest" selection. You can configure it to force the user to make a selection as deep as possible in the tree, or allow the user to select an item anywhere in the tree. Levels can be labeled, >you can configure limit the number of items that can be selected, configure a title for the dropbox, choose a site-wide animation delay, and so on. You can even create new items and levels through Hierarchical Select!

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