torfs-ict / cmsms-google-maps
Google Maps module for CMS Made Simple
1.0.1
2016-11-11 08:22 UTC
Requires
- torfs-ict/cmsms: ^2.1
This package is auto-updated.
Last update: 2024-12-21 21:36:36 UTC
README
Google Maps Module for CMS Made Simple. This module is meant to be used in the Composer and Bower-enabled version of CMSMS.
Features
- Add a map with pure HTML, as well as including an info window.
- Makes sure scrolling your website keeps working on small screens like tablets and smartphones, even when creating a full-width map.
Usage
- Add the required stylesheets to your
head
tag:{cms_module module="GoogleMaps" action="css"}
- Add the required javascript at the end of your
body
tag:{cms_module module="GoogleMaps" action="js"}
- Add the Smarty block as shown below to implement the map, the contents of the block will be put in the info window.
Sample code
{GoogleMaps address="One Microsoft Way Redmond, WA 98052-6399, United States" title="Microsoft HQ"} <h6>Microsoft HQ</h6> <p> One Microsoft Way <br>Redmond, WA 98052-6399 </p> <p>(425) 882-8080</p> <p><a href="https://www.google.be/maps/dir//One+Microsoft+Way+Redmond,+WA+98052-6399,+United+States" target="_blank">Directions</a></p> {/GoogleMaps}