Closed (fixed)
Project:
Printer, email and PDF versions
Version:
5.x-3.7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2008 at 20:04 UTC
Updated:
18 Sep 2008 at 21:16 UTC
In a previous version 4.7 (?) it was possible to print Google-maps. It is no longer possible. The reason, at least, is that Javascript is not included in the headers of the print page. (The $scripts variable is not expanded in the page template.)
If interest exist, I can try to provide a patch.
Comments
Comment #1
jcnventuraHi,
Can you try the latest dev version? It will have today's date, so you'll have to until it is created (it can take up to 12 hours).
Thanks,
João
Comment #2
sl27257Thanks a lot!!! Works for me!
/Thomas
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
JaredAM commentedI just downloaded 3.7 and I'm having the same problem with the gmap js not being loaded. I generate the map based on location information. Should I simply use drupal_add_js to manually load these scripts or am I doing something wrong?
Thanks!
Comment #5
jcnventuraHi,
The javascript files should be added already (view the page source to make sure of that).. Since the page gets regenerated, are you sure that the fact that the path is now starting with 'print' is not interfering in your code?
João
Comment #6
JaredAM commentedThe source shows that none of the gmap js's are being loaded. I don't think the path matters since I'm using a template file (print.node-name.tpl.php).
Comment #7
jcnventuraAre you using the gmap module? If so, I find it really weird that the Javascript is not in the source.
Comment #8
JaredAM commentedYup, I'm using gmap, then feeding it the lat/lon from the location module. I also find it really weird! That's why I thought I'd ask. It's probably a short circuit between the keyboard and ground, but I was hoping someone might have another idea or had run into this. If I figure it out, I'll post in case anyone else has this problem.
Comment #9
JaredAM commentedI'm really not sure what's going on. I've gotten around the problem by creating a page, loading a node, formatting my content, and then using a template to make it printer friendly. That seems to work. I get the gmap and everything seems to work fine. I think it's an issue between loading the bare data (regular printer friendly) and loading a node minus all the extras.