Questions tagged [location]

Real-world geographic locations can be associated with Drupal entities.

Filter by
Sorted by
Tagged with
10
votes
6answers
8k views

Disable vertical tabs by content type or user role

Some users may only have the ability to edit one of the fieldsets that shows up in vertical tabs on the node edit form. In such a case it looks rather silly to be using vertical tabs since there is ...
5
votes
5answers
12k views

geofield proximity in views

Ive been trying to setup a view where the distance to users is stated. There has recently been an update of geofield however I am having trouble with calculating the distances to users (only get a ...
2
votes
3answers
4k views

In Views admin, is there a section to insert CSS to style the view? i.e. how to style view without editing theme code or other drupal PHP?

In the Views admin (i.e. admin/structure/views ), is there a section in the settings to insert CSS to style the view? i.e. how do I style a view without editing theme code or other drupal PHP? I am ...
3
votes
2answers
189 views

How to implement georeferencing in Drupal?

I must make a website with geo-referenced content. And I would like to add POI and the possibility to download this POI for GPX, KML\KMZ (Google Earth), etc. Any tips or ideas to implement this ...
1
vote
1answer
1k views

Current user geographical location [closed]

I am building a website which on the contact page will have a section to find your local sales representive. I intend to do this by having a content type of sales rep with a location field and ...
5
votes
1answer
3k views

Mark a location on a map (Google Maps/OpenLayers) on a node creation or edit page - but with which module?

I have a custom content type, and I would like my users to mark a location on a Google Maps/OpenLayers map, save these coordinates, and on the frontend, show the location's map and the GPS coordinates....
5
votes
2answers
4k views

using drupal sessions during hook_boot

When a user calls the front page of our site we want to check the country from which the user is surfing and redirect the user directly to the country specific front page. We chose to use the ...
9
votes
5answers
5k views

Programmatically Update Geofield Data

My setup is: Addressfield on nodes to collect address data Geofield using "Geocode from another field" choosing the addressfield and the Google Geocoder When I edit/save a node in the UI, the data ...
2
votes
2answers
641 views

Dynamically change widget type in node edit form

I have a content type with a geofield. I'm using an Openlayers Map as the input Widget. The map allows the user to place a marker and it populates the geofield with the lon/lat coordinate. In some ...
3
votes
4answers
2k views

Views exposed filter error “An illegal choice has been detected. Please contact the site administrator.”

I am having a very odd problem with an exposed filter in one of my Views. The page I am talking about is here: http://epsindustry.org/eps-packaging-map2 When I select one of the last 2 options in the ...
3
votes
3answers
1k views

Alter the results returned by “Display a summary” for the Addressfield module

When I set contextual filters in a view for Content: my field: country and Content: my field: administrative area (state/province) and select "Display a summary" for "When the filter value is not ...
3
votes
1answer
1k views

Remove “where” clause in views 3

I want to remove "where" clause for city and postal_code in the views query. I found an example online for D6. I tried to change it a bit but it's not working. The "where" clause is still there. Below ...
2
votes
3answers
2k views

Adding geo location content to node

I'm looking for a maintained module that allows to add a geo location to a node of a custom content type. I am looking for something that has integration with Google Map API so that it's possible to ...
1
vote
2answers
67 views

Deny location based access to nodes

I need to restrict access to a node based on the distance of the current user to a location attached to the node (with Location module). The distance to decide, if access is allowed is node based and ...
1
vote
0answers
887 views

Create a hospital locator in drupal 7

I want to have a page in my site where the logged in user can look for hospitals, clinics and pharmacies near to him. I want these information to be shown on a map, preferably Google maps. I came to ...
1
vote
2answers
794 views

country based product price should be changed in commerce kickstart?

I have installed commerce kickstart. I have to add the two prices for single product. If Indian subscribers view the site means product price should display as 2000 INR. If other users ...
1
vote
2answers
3k views

How to import Nodes and Node Location data using Feeds module?

I would like to use Feeds to import Node Location data together with Nodes themselves. Each node of a selected content type is or is not assigned to a location. How to do this ?
0
votes
2answers
2k views

zero distance in views geofield proximity problem

I am having trouble getting it views to calculate the distance. I want a current user to see the distance to other users however the only result I have gotten is 0 between users. I tried to follow ...
0
votes
1answer
262 views

Making geolocated latitude/longitude values available to computed field in Drupal 7

I'm working on a D7 project where I need to pass a latitude/longitude value from a Location field (acquired from geolocating during import) to a Computed field. I found the following code in the ...
3
votes
2answers
895 views

Autopopulate “Postal Code” from taxonomy in Location module

In Location module input I want to disable "Postal Code" field but the node will have a mandatory vocabulary selection (vocabulary name: Postal Code). What I want is that when I create a node with ...
2
votes
1answer
1k views

Add Taxonomy Term automatically based on term from user's account

I have a vocab called "state of residence" with states in the form of TN, MS, AL, etc. Each user account has one of these references to show the state of residence. I can also place this taxonomy ...
0
votes
3answers
4k views

How to get country list array with their corresponding country codes

I have used $countries = \Drupal\Core\Locale\CountryManager::getStandardList(); to render array of countries with country code as their keys. But when I debug the variable $countries; print_r($...
0
votes
1answer
958 views

How do I import latitude/longitude into geofield?

I have a CSV file with a id column, a latitude and a longitude column, and some other data in each record. I have created a content type to hold this dataset. Each record will be mapped to a content. ...
0
votes
1answer
178 views

How to get rid of Re geocode and delete radio boxes on Location module?

How can I remove the ReGeocode and Delete checkboxes from the Location module? I don't need these functions and there is no settings to delete them. Where is the PHP or html file located so I can ...
0
votes
0answers
56 views

Subscriptions depending addressfield field

I have a events web page based on Drupal 7.Each of the events has a adressfield field. Now I need add a subscriptions functionality. I need each user can subscribe to the events taking place in one ...