I'm trying to create a plugin that will geocode address information input via an admin blueprint and dynamically return / assign latitude and longitude values to the page header. I have made the plugin work using the onPageContentRaw event hook, but this only saves to the cache rather than to the markdown file itself. Do I need to create a public function in the plugin and then use a function call (data-*@) in the page blueprint to make this value permanent? This is the first plugin I've written, and would appreciate some help. Right now my form looks like this:
Title
Address 1
City
State
and I would like it to take the values put into those last three and process the lat and long so that my page header looks like this:
title: XXXXX
address1: XXXXX
city: XXXXXX
state: XX
latitude: XXX
longitude: XXX
Thanks in advance for the help!