The Infowindow template is used to customize the layout and contents of the google maps infowindow that is displayed whenever a marker pin is clicked.


Usage: {tag_name}


Template file location:

/addons/transparentmaps/template/infowindow_default.html


CSS styles that affect the infowindow are located at:

/addons/transparentmaps/CSS/default.css




Available template tags:


Tag

Description

{baseurl}

Renders the base URL where Open-Realty is installed, i.e. the root of your Open-Realty site.

{template_url}

Renders the currently selected site template URL. Useful for creating absolute links for loading images, CSS and JS files from within your template folder.

{lang_VARIABLENAME}

Places the specified language variable from your Open-Realty or TMAPS language file(s) into the template where VARIABLENAME is the language variable array key. For example: using {lang_tmaps_get_directions} would render the contents of the TMAPS language variable: $lang['tmaps_get_directions'] which in this example contains the value: "Get Directions".

{tmap_info_XXX}

Renders the value of the field denoted by XXX as set in the Infowindow section of the TMAPS Global Settings tab. Valid tags are:


tmap_info_title  -  Renders the listing title

tmap_info_thumb  -  Renders the listing's primary photo thumbnail

tmap_info_address  -  Renders the listing's Address as defined in OR's Site Config -> Listings tab

tmap_info_city  -  Renders the listing's City as defined in OR's Site Config -> Listings tab

tmap_info_state  -  Renders the listing's State as defined in OR's Site Config -> Listings tab

tmap_info_zip  -  Renders the listing's Zip/Post code as defined in OR's Site Config -> Listings tab

{tmap_text_X}

Renders the value of the field denoted by the numeric value X as set in the Infowindow section of the TMAPS Global Settings tab for user definable text values 0 through 6. Valid tags are:


tmap_text_0  -  Renders the contents of the Text 0: field

tmap_text_1  -  Renders the contents of the Text 1: field

tmap_text_2  -  Renders the contents of the Text 2: field

tmap_text_3  -  Renders the contents of the Text 3: field

tmap_text_4  -  Renders the contents of the Text 4: field

tmap_text_5  -  Renders the contents of the Text 5: field

tmap_text_6  -  Renders the contents of the Text 6: field

{tmap_field_X_value}

Renders the value of the field denoted by the numeric value X as set in the Infowindow section of the TMAPS Global Settings tab for user selectable Open-Realty data Fields 1 through 6. Possible tags are:


tmap_field_1_value  -  Renders the OR field caption, value, or both for the selected Field 1: field.

tmap_field_2_value  -  Renders the OR field caption, value, or both for the selected Field 2: field.

tmap_field_3_value  -  Renders the OR field caption, value, or both for the selected Field 3: field.

tmap_field_4_value  -  Renders the OR field caption, value, or both for the selected Field 4: field.

tmap_field_5_value  -  Renders the OR field caption, value, or both for the selected Field 5: field.

tmap_field_6_value  -  Renders the OR field caption, value, or both for the selected Field 6: field.


Block Tags

HTML and any other markup contained inside an opening and closing block tag will be rendered only if the child tag it references contains data. Otherwise the block tags and their contents are removed. All opening block tags must be closed with a closing tag: {/ } e.g.:  

{tmap_show_address_block}

{tmap_info_address}

{/tmap_show_address_block}

{tmap_show_XXX_block}

Renders any HTML markup and/or corresponding TMAPS infowindow template tag values for the items denoted by XXX. Valid block tags are:


tmap_show_title_block - Renders content within if the corresponding tag: tmap_info_title contains a value

tmap_show_thumb_block - Renders content within if the corresponding tag: tmap_info_thumb contains a value

tmap_show_address_block - Renders content within if the corresponding tag: tmap_info_address contains a value

tmap_show_city_block - Renders content within if the corresponding tag: tmap_info_city contains a value

tmap_show_state_block - Renders content within if the corresponding tag: tmap_info_state contains a value

tmap_show_zip_block - Renders content within if the corresponding tag: tmap_info_zip contains a value


{tmap_show_field_X_block}

Renders any HTML markup and/or corresponding TMAPS infowindow template tag values for the items denoted by  the numeric value X. Valid block tags are:


tmap_show_field_1_block - Renders content within if the corresponding tag: tmap_field_1_value contains a value

tmap_show_field_2_block - Renders content within if the corresponding tag: tmap_field_2_value contains a value

tmap_show_field_3_block - Renders content within if the corresponding tag: tmap_field_3_value contains a value

tmap_show_field_4_block - Renders content within if the corresponding tag: tmap_field_4_value contains a value

tmap_show_field_5_block - Renders content within if the corresponding tag: tmap_field_5_value contains a value

tmap_show_field_6_block - Renders content within if the corresponding tag: tmap_field_6_value contains a value