Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello Community

Here is what I am trying to do.
I use the Couch tag
Code: Select all
<cms:google_map />

Now in the description in the docs it says that it can work on the latitude/longitude as well as the address.
the following code works perfect
Code: Select all
<cms:google_map
    name='my_map'
    address='1600 Amphitheatre Parkway, Mountain View, CA'/>


But when I do a nested tags, it says "Sorry we were unable to geocode the address"
here is the code

Code: Select all
<cms:hide>
       <cms:editable name='address1' label='Address' type='text' order='0'>1600 Amphitheatre Parkway, Mountain View, CA</cms:editable>
</cms:hide>
<cms:google_map
    name='map3'
    address='<cms:show address1 />'
    width='170'
    height='170'
    zoom='14'
    style='border-radius: 100%'
/>


What i need to do is to be able to enter in the admin side the address and Zoom.

All help is appreciated.
When nesting one Couch tag inside another, you have to use double quotes around it. It's a fussy little detail that's easy to overlook. http://www.couchcms.com/docs/concepts/s ... eters.html

I think this will correct your problem.
Code: Select all
<cms:google_map
    name='map3'
    address="<cms:show address1 />"
    width='170'
    height='170'
    zoom='14'
    style='border-radius: 100%'
/>
Great, thanks it worked.

BTW, the it does works on multiple spots with different addresses on the same page
Yes, with the latest release (1.4.5) we can now have more than one google_map on a page. The docs will be updated to reflect that.
4 posts Page 1 of 1