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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

[SOLVED] Email Plugin; Missing Display Page

Started by Nico Petri 9 years ago · 1 replies · 562 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago