Search Documentation

Customize map marker balloon

Customize marker info window template on Google map

When you click on the marker on the map, info window is popped up. It has universal layout and in most cases is not what you want to see. it also do not have any parameters to hide author name or publish date.

If you want to change how it looks, you will have to create custom template.

Good news with Cobalt you can fully control how this window looks. It takes some work but result is worth it.

  1. Copy file com_cobalt/fields/geo/tmpl/window/default.php with any other name

  2. In field parameter at very bottom chose this template for info window.

  3. Edit your new file and delete anything you do not need there.

Suggestions

Note that rules for full view custom article templates works. It means that you may call fields.

$key = $this->field_keys_by_id[12];
echo $record->fields_by_key[$key]->result;

Or directly by ID

echo $record->fields_by_id[12]->result;

Where 12 is an ID of the field (2).