WBCE CMS – Way Better Content Editing.
You are not logged in.
Hi. How can I use code in the accordion "Antwort" field? I should load a google map and therefore save this line of code
<div class="map" id="map_small" data-mapLat="xxxxx" data-mapLon="xxxxx" data-mapZoom="15" data-mapTitle="xxxxx"></div>
. But unfortunately the editor does not save code? Thank you.
Offline
You can use a droplet. We have a ready one which uses OpenStreetMap, you can download it in the Add-On repository:
https://addons.wbce.org/modules/downloa … 886&sid=14
Install it via Admin-Tools > Droplets > Import. Then call it with
[[osmmap?lat=52.509649&lon=13.375944&zoom=15&height=600&comment=Here I am]]
in your accordion section.
If you need Google Maps, you can build a small droplet and name it f.e. gmap. Put the following code inside it:
return '<div class="map" id="map_small'.$id.'" data-mapLat="'.$lat.'" data-mapLon="'.$lon.'" data-mapZoom="15" data-mapTitle="'.$title.'"></div>';
Then, in your accordion section call it with [[gmap?id=1&lat=12.345&lon=56.789&title=Example]]
Sorgen sind wie Nudeln: man macht sich meist zu viele.
Offline
Pages: 1