Implement an insert tag.

This commit is contained in:
David Molineus
2015-01-14 18:51:52 +01:00
parent a236ad3e60
commit 5f3080a62d
7 changed files with 101 additions and 14 deletions

View File

@@ -103,7 +103,7 @@ trait HybridTrait
try {
RequestUrl::setFor($this->getIdentifier());
$mapId = 'map_' . ($this->cssID[0] ?: ('ce_' . $this->id));
$map = $this->mapService->getJavascript($this->leaflet_map, null, $mapId);
$map = $this->mapService->generate($this->leaflet_map, null, $mapId);
RequestUrl::setFor(null);
$GLOBALS['TL_BODY'][] = '<script>' . $map .'</script>';