How can I draft pages from the frontend of the site

You can set a parent using the page helper:

$registration = page('somepage')->createChild([
'slug' => $data['name'] . microtime(),
'template' => 'product-designer',
'content' => $data
]);

Uploading files: https://getkirby.com/docs/cookbook/forms/file-uploads

1 Like