Answer the question
In order to leave comments, you need to log in
How to create a drop-down list of cities for Drupal8 with automatic detection of the user's city from his list?
There is a task to determine the location of the user and display his city in the header. However, the city must be the nearest one from its own list of cities. For example, if the user is from Aramil, then we display Yekaterinburg, if Lobnya, then we display Moscow, etc.
In addition, it should be possible to select a city from the drop-down list, if you suddenly made a mistake. Surely there is some module that allows you to do this.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question