Jump to content

Question re Geomaps Google infowindow popup


Jeff Cooper

Recommended Posts

In the geomap infowindow popup, I would like to test the value of one of my listing fields.

 

In map_infowindow_google.thtml, I understand that I can display the value of a field by using:

 

<span class="gm-jr_address"></span>

 

Is there a way to 'test' the value of jr_address in this file?  For example, if I want to use an if, then statement with jr_address, how would I do it?

 

This doesn't work:

 

               <?php if(<span class="gm-jr_address"></span>   =   0):?>

 

I have also tried defining a variable to include the contents of "<span class="gm-jr_address"></span>", but that isn't working either.

 

If I can't make this work using the span class, is there another way to pull a listing variable into this file? thanks

Jeff

 

Link to comment
×
×
  • Create New...