WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Hilfe & Support (deutsch) => General Help & Support => Module => Topic started by: astricia on July 19, 2017, 11:48:17 AM

Title: Mapbaker-Droplet für OFA ?
Post by: astricia on July 19, 2017, 11:48:17 AM
Gibt es die Möglichkeit, in einem OFA-Abschnitt ein Eingabefeld vom Typ Modul Mapbaker einzubinden? Evtl. über ein Droplet?

LG,
Astrid
Title: Re: Mapbaker-Droplet für OFA ?
Post by: astricia on July 21, 2017, 08:48:15 PM
Keiner eine Idee???
Title: Re: Mapbaker-Droplet für OFA ?
Post by: CodeALot on July 21, 2017, 08:51:29 PM
Example page: HERE (http://www.kennemerhaeve.nl/portefeuille/lauriergracht-152-amsterdam-36/) (Scroll down to see the map)

What I did here, was create a field (FIELD_9 in this case) type SHORT TEXT where the admin has to enter the street address.
In the ITEM DETAIL in page setup I added the line:
Code: [Select]
<iframe class="maps" style="width:100%; height:400px; border:0px;"
src="https://www.google.com/maps/embed/v1/place?q=[FIELD_9]&zoom=16&key=YOUR_GOOGLE_MAPS_API_KEY_HERE">
</iframe>

All the admin had to enter in that field was: Lauriergracht 152, Amsterdam
Works like a charm :)
Title: Re: Mapbaker-Droplet für OFA ?
Post by: astricia on July 21, 2017, 09:04:54 PM
Thanks, exactly what I need! I will try that. :-)