SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  2
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

linked select lists in drupal 7

3 years 8 months ago #125846 by binetaG
linked select lists in drupal 7 was created by binetaG
Hello everybody,

I have to create different agencies for a company and to display them on a map; the list of agencies is supposed to have 3 filters and according to the filters set by the user, only the relevant agencies must appear on the map.
So I got two problems:
  1. I'd like to know how to create linked select lists (Distritcts, Provinces and Communes) in Drupal 7 since each agency is located with those 3 fields;
  2. how to create an interaction between the filtered results and the map, to display them on it.

Thank you in advance

Please Log in to join the conversation.

3 years 8 months ago #125851 by Nick
Replied by Nick on topic linked select lists in drupal 7
Hi and welcome, binetaG!

Are you wanting to use a Google Map with markers on it for each location?

For the fields, checkout www.ostraining.com/blog/drupal/dropdown-list/ and www.drupal.org/project/ddf to go along with it.

Looking forward to helping.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: binetaG

Please Log in to join the conversation.

3 years 8 months ago #125857 by binetaG
Replied by binetaG on topic linked select lists in drupal 7
Hi Nick,

Thank you for your response. I'll check these two modules.
And yes, that's what I want to do : use a Google Map with markers on it for each location.

Thanks in advance

Please Log in to join the conversation.

3 years 8 months ago #125882 by steve
Replied by steve on topic linked select lists in drupal 7
Hi binetaG

With the linked select lists, will this be when people enter data? If so this might help:
www.ostraining.com/blog/drupal/hierarchical-select/
www.ostraining.com/blog/drupal/dropdown-list/

If the select lists are for when visitors are looking at the map, you will need exposed filters. Have you started to use Filter Criteria in Views? They have an option to allow visitors to use them.

Please Log in to join the conversation.

3 years 8 months ago #125883 by binetaG
Replied by binetaG on topic linked select lists in drupal 7
Hi Steve,
Thank you for your response.
In fact the linked lists are for both content edition and display. I'll check the modules you gave me.
Now the problem is how to display these agencies on the google map and make the map interact with the user's selection in the filters; which means if a user selects a town in the filters, only the agencies in this town should appear on the map. Somebody told me about map markers...

Please Log in to join the conversation.

3 years 8 months ago #125916 by steve
Replied by steve on topic linked select lists in drupal 7
Yes, map markers are definitely the way to go.

Again, I've a couple of different approaches I can recommend:
www.ostraining.com/blog/drupal/gmap/ with Google Map
www.ostraining.com/blog/drupal/openlayers/ with Open Layers

Scroll to the bottom of both tutorials to get a preview of the results with markers.
The following user(s) said Thank You: binetaG

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!