Forums / Developer / Google Earth and eZ publish
Bjørn Sandvik
Tuesday 06 February 2007 9:45:14 am
I've used eZ publish to generate KML files for Google Earth. To achive this I've made a new pagelayout (kml_pagelayout.kml) and some template overrides (kml_view.country.tpl etc).
You'll find an example on:http://www.globalis.no/land/afghanistan
Click on the link "Vis land på Google Earth"
This is working with Firefox but Internet Explorer gives an error:"Could not open file..."
This is a known error and is not directly connected to eZ publish:http://bbs.keyhole.com/ubb/showflat.php?Cat=0&Number=665657&page=2&fpart=all&vc=1
I've tried different solutions but it's still not working.
Does anyone have a solution???
http://blog.thematicmapping.org http://www.globalis.no
Kristof Coomans
Tuesday 06 February 2007 11:52:15 pm
Hi Bjørn
This has probably something to do with cache control.
I've encountered the problem before with other types of files and I used the following HTTP headers to solve it:
Expires: 0 Cache-Control: private Content-type: application/x-Research-Info-SystemsContent-Disposition: attachment; filename="export.ris"
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Wednesday 07 February 2007 1:17:52 am
Thanks for your reply.
Is it possible to set these HTTP headers without changing the kernel files of eZ publish?
Wednesday 07 February 2007 2:06:29 am
Yes, you can: http://ezpedia.org/wiki/en/ez/headers
Wednesday 07 February 2007 9:34:31 am
SOLVED!
I had to add these lines to site.ini.append.php:
[HTTPHeaderSettings] CustomHeader=enabled HeaderList[]=Cache-Control Cache-Control[]Cache-Control[/layout/set/kml]=private
It is now working in both Internet Explorer and Firefox
Thanks for your help.
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0001 secs