Search code examples
dotnetnuke2sxc

Can we hook in an API call on save of a 2sxc content item and save results to a field?


Okay, a question for all you 2sxc users. Let's say we want to build a Google Map with markers for various locations. Easy enough, but if we want to use 2sxc for entering the locations, we'd like to on each save, have it obtain the lat/lng from the Geocoder API, and store that information into fields for that location content type. Is this possible? If so, do you have any examples or guidance on how to hook the API call in?


Solution

  • Here is a quick video of the content-type, GPS fields, and input (GPS Picker) that are in 2sxc nowadays. Quick screen recording.