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.
Is there a way to implement geofield as part of a field-collection (http://drupal.org/project/field_collection).
$items is empty when geofield_field_presave in geofield.module is fired when geofield is included as part of a field-collection.
Many thanks.
Comments
Comment #1
adam_b CreditAttribution: adam_b commentedIs this possibly related to #1297870: Data not saved for Location fields ?
Comment #2
Brandonian CreditAttribution: Brandonian commentedThanks for the request, hillm! I don't know much about field_collection itself. If someone can research what's preventing geofield from working with field_collection, I'm open to patches.
Comment #3
nod_works for me, I'm using a geofield in a field_collection, i'll look into it during the week.
Comment #4
phayes CreditAttribution: phayes commentedMarking as cannot-reproduce. Feel free to re-open if this issue comes up again.
Comment #5
paulwdru CreditAttribution: paulwdru commentedHi,
I chose Geocode From Another Field (address field module) using default Google Map settings.
In the Manage Display, I chose Geofield Map, I found that with Field Collection, the scenario is similar to using Inline label with width 100% as stated in #2707431: Geofield Map does NOT show with Inline label & 100% width , the map does NOT show unless changing the map to a fixed width. for eg 300px.
I want a responsive map, NOT a fixed-width map, any ideas ? Thanks
Comment #6
Jcpo CreditAttribution: Jcpo commentedSame here on Drupal 8.4.2, I'd like to have altitude and country fields with geofield together in a field collection, but the data from geofield does not save (no data displayed in the content view and when editing the content, the lat/long fields remain empty).
But the data seem to store in database because when I set geofield widget instead of DMS or lat/long in the form display managing, the lat/long I previously entered show as it should in the content editing (I supose) : "POINT (lat long)".
I have not tryied to use the Geofield Map Widget as I haven't no key yet.
I also use Conditional Fields to display multiple or simple geolocation points fields but I don't think it has to do with the problem ?
thank you in advance ;)
Comment #7
denix CreditAttribution: denix as a volunteer commentedHi all,
I am facing the same issue as @hillmark, but using Paragraphs in D7. Am I doing something wrong or a solution was never found for this? I keep investigating.
Comment #8
apaderno