In Drupal 8, the field type for a plain text field is "string". The current formatter only supports the "text" field type, which is for formatted text. Is there any reason for this, or is it just an oversight? It confused the hell out of me when I first tried using this module.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | simple_gmap-include_string_field_type-2377971-5.patch | 495 bytes | alfaguru |
Comments
Comment #1
alfaguru commentedAlso note that the core bug https://www.drupal.org/node/2348459 means the module is currently unusable without this change.
Comment #2
jhodgdonThe Drupal 8 version of this module hasn't been updated recently. Someone contributed a patch quite a while ago and there are quite a few things that need to be updated.
If you'd like to make a patch that fixes the Drupal 8 version so it will actually work, that would be great! Otherwise I'll get to it eventually but not immediately.
Comment #3
jhodgdonComment #4
alfaguru commentedIt's just a one line change. I'll roll it when I get a minute.
Comment #5
alfaguru commentedHere's the patch. Once this change was applied I was able to create a plain text field and format it as a Google map, then successfully create content and see a map displayed.
Comment #6
jhodgdonWe probably actually shouldn't support formatted text fields at all -- having HTML tags would be a problem. I'll need to look into this a bit more, but I don't think the right fix is to add this field type; it should be replaced?
Comment #7
alfaguru commentedMake sense, although the Google web service may possibly ignore tags, there is no real value in supporting them.
Comment #8
jhodgdonIn the intervening time, this problem was fixed on a different issue.