Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

[SOLVED] Email Plugin; Missing Display Page

Started by Nico Petri 9 years ago · 1 replies · 796 views
9 years ago

Hello there,

as above the display page couldnt be found but it was working before (prototype stage). I am not sure but i guess that after i enabled mulit language support its broken.

My setup, the form is in a modular page like

TXT
/_contact
contact.de.md
contact.pl.md

/form-thx
formdata.de.md
formdata.pl.md

The frontmatter section looks like

TWIG
    process:
    -
        email:
            from: '{{ config.plugins.email.from }}'
            to: ['{{ config.plugins.email.from }}', '{{ form.value.email }}']
            .....
            .....
            .....
    -
        message: 'Dziękujemy za wiadomość'
    -
        display: form-thx

The runtime exception page looks normal to me, except of this

TXT
REQUEST_URI     "/dehome"
REDIRECT_URL    "/dehome"

Theres missing a slash between de and home.

I tried to put a fallback markdown file formdata.md in the form-thx folder but still its not working.

Any thoughts?

Thx in advance.

9 years ago

I just figuered it out. The form definition was wrong. I changed as below:

YAML
form:
    ...
    action: home -> action: /home
    ...

Suggested topics

Topic Participants Replies Views Activity
Plugins · by renedebaaij, 13 hours ago
0 17 13 hours ago
Plugins · by complanar, 2 weeks ago
6 379 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 197 2 weeks ago
Plugins · by complanar, 1 month ago
2 473 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 750 2 months ago