Author Topic: Mapbaker-Droplet für OFA ?  (Read 511 times)

Offline astricia

  • Posts: 707
  • Gender: Female
    • netSchmiede24
Mapbaker-Droplet für OFA ?
« 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

Offline astricia

  • Posts: 707
  • Gender: Female
    • netSchmiede24
Re: Mapbaker-Droplet für OFA ?
« Reply #1 on: July 21, 2017, 08:48:15 PM »
Keiner eine Idee???

Offline CodeALot

  • Posts: 437
  • Gender: Male
Re: Mapbaker-Droplet für OFA ?
« Reply #2 on: July 21, 2017, 08:51:29 PM »
Example page: HERE (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 :)

Offline astricia

  • Posts: 707
  • Gender: Female
    • netSchmiede24
Re: Mapbaker-Droplet für OFA ?
« Reply #3 on: July 21, 2017, 09:04:54 PM »
Thanks, exactly what I need! I will try that. :-)

 

postern-length