Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi KK, I am trying to set up a Google Map for my Contact page. I set up my Lat and Long values in the globals.php and try to pass them to the google_map tag (see below). I noticed that the javascript rendered on the page did not parse the <cms:show> tag. Is there a way to do this?

Thanks
Rudy

Code: Select all
<cms:if k_page_name=='contact'>
<cms:google_map
    name='my_map'
    zoom='8'
    width='630'
    height='300'
    latitude='<cms:show g_site_map_lat />'
    longitude='<cms:show g_site_map_long />'
/>
</cms:if>
Hi Rudy,

Please use double-quotes to enclose the Couch code used as parameter's value i.e. make it
Code: Select all
latitude="<cms:show g_site_map_lat />"

You might want to see http://www.couchcms.com/docs/concepts/s ... eters.html for a short discussion on the importance of the type of quotes used.

Hope this helps.
Hi KK, that works! Thanks a bunch. I will make sure to comb through the docs next time.

Cheers
Rudy
3 posts Page 1 of 1