Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Example: Use a content type 'Basic Page' with an entity reference field to a content type 'Location'.
The content type 'Location' has a geolocation field.
Index the entity reference field (field_geolocation) on the basic page node.
Print the 'Location' nodes on a map and filter on the search overview page.
Proposed resolution
See Patch.
Remaining tasks
Review patch.
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | geolocation_facet.patch | 5.08 KB | tomhollevoet |
| |||
geolocation.png | 143.52 KB | tomhollevoet |
Comments
Comment #2
tomhollevoet CreditAttribution: tomhollevoet at Calibrate commentedCorrect patch file.
Comment #3
Makemeweb CreditAttribution: Makemeweb commentedThe patch applies fine to the latest 8.x-2.x-dev but trying to configure a facet results in "PHP Fatal error: Trait 'Drupal\\geolocation\\GoogleMapsDisplayTrait'", have those files missing or do they require another patch ?
Comment #4
ChristianAdamski CreditAttribution: ChristianAdamski commentedAdapt to 3.x