Hi,
I used this instruction:
https://learn.getgrav.org/forms/forms/how-to-forms-in-modular-pages
to set up a contact form on my modular webpage which uses the antimatter theme.
Unfortunatly the formfied doesn’t appear. The path of my contact directory is: /home/_kontakt
In that directory you can find the form.md and the modular.md.
This is my form.md
title: Kontakt
menu: Kontakt
cache_enable: false
and this is my modular.md:
content:
item: '@self.modular'
form:
action: home
name: kontaktformular
classes: clearfix
fields:
-
-
buttons:
- type: submit
value: Nachricht versenden
classes: btn btn-success btn-block
process:
- email:
from: "from@email.de"
to:
- "{{ config.plugins.email.to }}"
- "my@email.de"
subject: "GWB Website Kontakt: {{ form.value.name|e }}"
body: "{% include 'forms/data.html.twig' %}"
- save:
fileprefix: feedback-
dateformat: Ymd-His-u
extension: txt
body: "{% include 'forms/data.txt.twig' %}"
- message: Danke für Ihre Nachricht!
- display: /kontakt/thankyou/formdata.md
I can’t figure out where i did the mistake.
Hope someone can see where it is.