Jump to content

Customize map module info window


Marina R

Recommended Posts

I would like to modify the template of info window appearing in the sidebar map module.

 

I found the template file : 

 

components/com_jreviews_addons/geomaps/views/themes/geomaps/elements/map-infowindow-template.thtml

 

The syntax is different from other template files.

 

Is it possible to add this kind of condition around the listing author link :

 

<?php if($CustomFields->field('jr_fieldname',$listing,false,false) != ''):?>

<a href="{{ownerUrl}}"><img class="jrAvatar" src="{{avatarSrc}}" /></a> <a href="{{ownerUrl}}">{{name}}</a>

<?php endif;?>

 

What would be the syntax ?

 

Thanks !

Link to comment
×
×
  • Create New...