Hi. I’m looking for a plugin or anything else that will save inputed emails to a server so I can view them in the kirby panel for example as a structure. Is there any good solution for this?
There is no plugin that I know of, but have a look at this cookbook recipe: https://getkirby.com/docs/cookbook/creating-pages-from-frontend
bnomei
March 31, 2017, 1:00pm
3
try @mzur ’s uniform with custom action to update a page . this has the bonus that uniform already protects you quiet well from spam-robots and all the other pitfalls of html-form security .
bnomei
March 31, 2017, 1:02pm
4
about updating structures…
Hi @scottswany
I was also looking for a way to update the structure field type outside via the front-end.
Here’s how I did it:
// this is the page which has the structure field type (called submissions in my case)
$submissions = site()->find('submissions');
// get existing entries in an array
$existing_submissions_array = $submissions->content()->get('submissions')->yaml();
// add a new entry to the array
$existing_submissions_array[] = ['name' => $form['name'], 'email' => $form['email'];
// …