tranduyhung / grav-theme-big-picture

Big Picture theme is a port of Big Picture by HTML5 UP for Grav CMS
MIT License
15 stars 12 forks source link

Error sending the contact-form #26

Open machtelik81 opened 3 years ago

machtelik81 commented 3 years ago

By sending the contact-form there occurs an error.

if (!$page) { throw new RuntimeException('Display page not found. Please check the page exists.', 400); }

The E-Mail is sending successfully. I think it is just the "Thank you" Message.

tranduyhung commented 3 years ago

It seems there is a problem with your page's configuration, not a problem from the theme. You check to see if you forgot to create the Thank You page.

machtelik81 commented 3 years ago

It seems there is a problem with your page's configuration, not a problem from the theme. You check to see if you forgot to create the Thank You page.

Is it possible to show a alert or replace the form into a message, instead of showing a new page. The theme is a singlepage so it would be great to keep everything on that side.

tranduyhung commented 3 years ago

The theme doesn't support this at the moment. If you want to achieve this you need to override the theme's templates. Here is the instruction for how to submit Form plugin's form with AJAX: https://learn.getgrav.org/17/forms/forms/how-to-ajax-submission.