-
DescriptionSchaffe es nicht eine Karte, die über Con4Gis eingebunden wird zu blockieren. Gibt es dazu eine Lösung? Eventuell das Template c4g_maps erweitern? Wie bekomme ich das Template in die Cookiebar? Bisher stehen nur die Analytics Templates zur Auswahl. Das Template: <!-- indexer::stop -->
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline) {
echo '<' . $this->hl . '>' . $this->headline . '</' . $this->hl . '>';
} ?>
<?php if (!isset($this->mapData['mapDiv']) || !$this->mapData['mapDiv']): ?>
<?php if (isset($this->mapData['height']) || isset($this->mapData['width'])): ?>
<div id="<?php echo 'c4g_map_' . $this->mapData['mapId'] ?>" class="c4g_map" style="width: <?= $this->mapData['width'] ?> ; height: <?= $this->mapData['height'] ?>;">
<div id="<?php echo 'c4g-map-container-' . $this->mapData['mapId'] ?>"></div>
</div>
<?php else: ?>
<div id="<?php echo 'c4g_map_' . $this->mapData['mapId'] ?>" class="c4g_map">
<div id="<?php echo 'c4g-map-container-' . $this->mapData['mapId'] ?>"></div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if (\Contao\Environment::get('isAjaxRequest')): ?>
<script>
window.mapData = window.mapData || {};
window.mapData<?php echo '['.$this->mapData['mapId'] . ']' ?> = <?php echo json_encode($this->mapData) ?>;
window.initMap(window.mapData<?php echo '['.$this->mapData['mapId'] . ']' ?>);
console.log(window.mapData<?php echo '['.$this->mapData['mapId'] . ']' ?>);
</script>
<?php else: ?>
<script>
window.mapData = window.mapData || {};
window.mapData<?php echo '['.$this->mapData['mapId'] . ']' ?> = <?php echo json_encode($this->mapData) ?>;
</script>
<?php endif; ?>
</div>
<!-- indexer::continue --> |
Beta Was this translation helpful? Give feedback.
Answered by
zoglo
Sep 27, 2024
Replies: 1 comment 1 reply
-
@bkrmb Questions should be asked in Discussions :) See: Did you check #202 (comment) Or rather, you'd want to use the addmodule method, the OP explains it in this issue |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zoglo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bkrmb Questions should be asked in Discussions :)
See:
This issue is not a question, not a feature request and I have read the documentation and pinned issues
Did you check #202 (comment)
Or rather, you'd want to use the addmodule method, the OP explains it in this issue
#220