Add frontend module (Close #7).

This commit is contained in:
David Molineus committed 2015-01-09 23:20:07 +01:00
1 parent 47d27e9c4a
commit 91ccfa56f4
9 files changed
+222 -12

No files matched your search

@@ -78,7 +78,7 @@ class MapElement extends \ContentElement
protected function compile()
{
try {
$mapId = 'map_' . ($this->cssID[0] ?: $this->id);
$mapId = 'ce_map_' . ($this->cssID[0] ?: $this->id);
$map = $this->mapService->getJavascript($this->leaflet_map, null, $mapId);
$GLOBALS['TL_BODY'][] = '<script>' . $map .'</script>';