I've been using GMap module for Drupal 6 for a while. Once I changed the theme from Garland to my own. The map page said only "Javascript is required to view this map".
I googled and found that I should include a javascript tag via drupal_add_js() function, but the scripts are already there when I did view source. Comparing with the working source, the missing piece is
<script src="http://maps.google.com/maps?SOME_VALUE" type="text/javascript"></script>
which is not included in a Drupal variable $script.
After comparing the page.tpl.php of the two themes line-by-line, the problem is that there was no $head in my new theme. I just inserted
<?php print $head ?>
before the line
<?php print $styles ?>
and the map appears.
อยากเขียนโปรแกรมเก่งๆบ้างอะพี่สน
ต้องเริ่มที่แรงบันดาลใจรึปล่าว
พอคิดว่าอยากจะเข้าไปหาอะไรใหม่ๆอ่าน
ก็ไปจบที่ kapook กะ dek-d.com ทุกที
ห้าๆ
ขอความช่วยเหลือ
หรือ คำแนะนำ
หรือ คำบ่นๆ
เราก็ไม่เก่งจ้ะ อาศัยมวยวัด ครูพักลักจำ ถึกควายทุย และกูเกิ้ล
Thank you for posting this! It fixed my problem!
Thanks for this. I spent 2 days trying to figure out why I couldn't get the map to show up. Cheers.
Thanks mate
So simple after having spent about an hour trawling the Drupal site! :o)
I am very thankful for the response I was facing same issue and it resolved my issue.
Thanks tewson! Its worked for me.
Very helpful post!
Thanx for share this
Add your comment