×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Hotspots frontend form adds K2 item

Hotspots frontend form adds K2 item 7 years 11 months ago #33849

  • Niels Jonker
  • Niels Jonker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hi Daniel,
I use K2 items all over my website succesfully. Adding a K2 item adds a hotspot too. However I would like to use it the other way around.
As the hotspots form has way better user experience, I prefer on using it to add new hotspots instead of the K2 frontend form.
Could you give me hint where I can add code(UPDATE Query) that adds title, description, address, lat, lng, etc. also to the K2 database table?
thanks,

Hotspots frontend form adds K2 item 7 years 11 months ago #33854

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
We are triggerin an event onHotspotSaved I think (look at the hotspot - email plugin) . You can use this event to save the data in k2, but you should not forget to also populate the #__marker_mappings table. Otherwise you won't know when to update a k2 entry and when to create a new k2 entry.

Regards,
Daniel

Hotspots frontend form adds K2 item 7 years 11 months ago #33859

  • Niels Jonker
  • Niels Jonker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Thanks Daniel, that did the trick!
  • Page:
  • 1
Time to create page: 0.110 seconds