Patch (to be ported)
Project:
KML
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2011 at 17:29 UTC
Updated:
29 Apr 2014 at 14:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jeffschulerYeah, it looks like there's no functionality that actually backs that statement :p
Thanks for your patch!
We'll want some docs, too, instructing on how to get ahold of the stuff that gets thrown into $point['content'].
Comment #2
jeffschulerHow about this?
Via preprocess, we make add those remaining fields into the $content variable.
Changed wording in KML style settings to make it this requires a custom kml-placemark.tpl.php.
Comment #3
jeffschulerComment #4
jeffschulerBetter documentation of this functionality.
Comment #5
jeffschulerCommitted #4 to 6.x-2.x. Thanks @lookatthemoose!
Comment #6
jeffschulerThis needs to be ported to 7.x.
Comment #7
tinem commentedI use 6.x-2.0-alpha1+9-dev and have this problem:
Why does my KML files sometimes open in browser instead of download file?
http://beta.findtoilet.dk/feeds/municipality
I have tried it in different browsers and it only happens sometimes and for different KML-files.
Think it would be best NOT to open in browser but ask for download just as CSV does.
A friend of mine that doesn't know drupal said:
"its a problem with the http header ContentType for some KML files. Somewhere in the PHP the content type is or should be set like this: header('Content-type: application/vnd.google-earth.kml+xml');"
Anyone know what code to change, please?
Edited 15 April 11:58: The strange thing is that the SAME browser and SAME file sometimes show text in browser but a little later it shows as to download and with filename. Could it be a cacheproblem when such things can happen?
Comment #8
jeffschulerHi tinem:
Please open a new support issue for your concern. It will make it easier for other folks to find, increase chances for getting a response, and won't confuse this issue, (which is about adding other field data to placemarks.)
Comment #8.0
jeffschulerexplained the filepath where the patch is applied.
Comment #9
pmusaraj commentedI made a patch for Drupal 7, attaching it here. Let me know if there are any issues with it.