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

adam_b’s picture

Is this possibly related to #1297870: Data not saved for Location fields ?

Brandonian’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks 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.

nod_’s picture

works for me, I'm using a geofield in a field_collection, i'll look into it during the week.

phayes’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Marking as cannot-reproduce. Feel free to re-open if this issue comes up again.

paulwdru’s picture

Version: 7.x-1.x-dev » 7.x-2.3
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (cannot reproduce) » Active

Hi,

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% map 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

Jcpo’s picture

Version: 7.x-2.3 » 8.x-1.0-alpha4

Same 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 ;)

denix’s picture

Title: Geofield as a field-collection-item » Geofield as a field-collection-item or paragraphs
Version: 8.x-1.0-alpha4 » 7.x-2.3
Issue tags: +Paragraphs, +Field collection

Hi 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.

apaderno’s picture

Version: 7.x-2.3 » 7.x-2.x-dev
Issue tags: -Paragraphs, -Field collection