WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 17.09.2017 12:11:12

casi
Mitglied

Accordion addon inser code

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

#2 17.09.2017 12:39:54

florian
Administrator

Re: Accordion addon inser code

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]]


Code allein macht nicht glücklich. Jetzt spenden!

Offline

Fußzeile des Forums

up