Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Display page not found. Please check the page exists

Solved by cvgrenoble View solution

Started by cvgrenoble 4 years ago · 7 replies · 1030 views
4 years ago

Hello,
My contact form folder have a subfolder (email send). In the option of the subfolder I have:
Display template: form
Capture|690x408
Capture1|591x369

It seem to be all I need to have the "email send" page when validating a mail but I alway have the message:
"Display page not found. Please check the page exists."

I don't know what I miss.
Thank for your help

4 years ago

@cvgrenoble, The template of the 'merci' page must be 'formdata'.

See https://learn.getgrav.org/17/forms/forms/example-form :

Now inside the page folder create a subfolder named thankyou/ , create a new file named formdata.md . And paste the following code into the file:

YAML
---
title: Email sent
cache_enable: false
process:
    twig: true
---

## Email sent!
last edited 04/01/22 by pamtbaau
4 years ago

I try something like this:
Capture1|517x331
This give me that:
Capture|516x461
but this is the same problem.

4 years ago

@cvgrenoble, You should use field 'Page Template', but if it doesn't contain 'FormData' in the dropdown, you will not be able to set it in Admin.

You can then only set the filename/template from within the filesystem.

4 years ago Solution

A backup of my website has been reinstalled. In this version everything works fine but looking for details, I am unable to tell how I got it to work using only the web administration page.
Thank for the help.

last edited 04/02/22 by cvgrenoble
4 years ago

@cvgrenoble,

As said before, if, in Admin, the field ‘Page Template’ does not contain template 'FormData' you will have to create that page manually on the filesystem.

Something similar to the following:

TXT
user
└── pages
    ├── 01.home
    └── 02.contact
        ├── form.md
        └── thankyou
            └── formdata.md

File formdata.md should then contain something similar to:

YAML
---
title: Email sent
cache_enable: false
process:
    twig: true
---

## Email sent!

If you don't know how to create a folder and file on the filesystem, Grav will be a tough journey...

4 years ago

@cvgrenoble,

And as I say, I make it work in my preview backup.

If your issue has been solved, then please mark the post as such by ticking the 'solution' icon in the lower right corner of any reply that lead to the solution. That may well be your own reply...

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 9 hours ago
1 11 2 hours ago
General · by Andy Miller, 2 hours ago
0 7 2 hours ago
General · by Jerry Hunt, 5 days ago
2 136 1 day ago
General · by pamtbaau, 1 day ago
1 93 1 day ago
General · by Andy Miller, 2 days ago
0 77 2 days ago